Set Trailing Cmma to (#525)

This commit is contained in:
Lipis
2020-01-24 12:04:54 +02:00
committed by GitHub
parent 25202aec11
commit ee68af0fd3
53 changed files with 352 additions and 350 deletions

View File

@ -11,7 +11,7 @@ export type ActionResult = {
type ActionFn = (
elements: readonly ExcalidrawElement[],
appState: AppState,
formData: any
formData: any,
) => ActionResult;
export type UpdaterFn = (res: ActionResult) => void;
@ -30,7 +30,7 @@ export interface Action {
keyTest?: (
event: KeyboardEvent,
elements?: readonly ExcalidrawElement[],
appState?: AppState
appState?: AppState,
) => boolean;
contextItemLabel?: string;
contextMenuOrder?: number;
@ -44,19 +44,19 @@ export interface ActionsManagerInterface {
handleKeyDown: (
event: KeyboardEvent,
elements: readonly ExcalidrawElement[],
appState: AppState
appState: AppState,
) => ActionResult | {};
getContextMenuItems: (
elements: readonly ExcalidrawElement[],
appState: AppState,
updater: UpdaterFn,
actionFilter: ActionFilterFn
actionFilter: ActionFilterFn,
) => { label: string; action: () => void }[];
renderAction: (
name: string,
elements: readonly ExcalidrawElement[],
appState: AppState,
updater: UpdaterFn,
t: TFunction
t: TFunction,
) => React.ReactElement | null;
}