You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import type { MainProcessApi } from '../types';
import * as actions from './actions';
const DimensionsApi = {
prefix: 'dim',
actions,
} as const;
export type Dimensions = typeof DimensionsApi;
export default DimensionsApi;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// @ts-expect-error - want to check for typing but ignore no unused locals here
const typecheck = DimensionsApi as MainProcessApi; // should error if it doesn't conform
to create the ipc channels really easily with typings so both the main and renderer process have access to proper typings for what info can go across the ipc channels. We additionally want to be able to prefix the name of the messages so we sort of scope ipc messages without cluttering. However, a consequence is that we get this unused variable error in the current implementation.
The text was updated successfully, but these errors were encountered:
Currently we do something like this
to create the ipc channels really easily with typings so both the main and renderer process have access to proper typings for what info can go across the ipc channels. We additionally want to be able to prefix the name of the messages so we sort of scope ipc messages without cluttering. However, a consequence is that we get this unused variable error in the current implementation.
The text was updated successfully, but these errors were encountered: