7c980ebb19
* add electron wrapper * add to workspaces * fixes electron setup * Fix package for dev * build out electron app communication * Update README.md
19 lines
472 B
TypeScript
19 lines
472 B
TypeScript
export type Message =
|
|
| { type: 'zoomIn' }
|
|
| { type: 'zoomOut' }
|
|
| { type: 'resetZoom' }
|
|
| { type: 'zoomToFit' }
|
|
| { type: 'zoomToSelection' }
|
|
| { type: 'undo' }
|
|
| { type: 'redo' }
|
|
| { type: 'cut' }
|
|
| { type: 'copy' }
|
|
| { type: 'paste' }
|
|
| { type: 'delete' }
|
|
| { type: 'selectAll' }
|
|
| { type: 'selectNone' }
|
|
|
|
export type TLApi = {
|
|
send: (channel: string, data: Message) => void
|
|
on: (channel: string, cb: (message: Message) => void) => void
|
|
}
|