Skip to content

Commit

Permalink
Update hooks.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Nov 24, 2024
1 parent 5fad59c commit 16f7928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ declare module 'tiddlywiki' {
callback: (props: {
// eslint-disable-next-line @typescript-eslint/ban-types
callback: Function;
file: { name: string; path?: string };
file: { lastModified?: number; lastModifiedDate?: Date; name: string; path?: string; size: number; type: string; webkitRelativePath?: string };
isBinary: boolean;
type: string;
}) => boolean | undefined,
Expand All @@ -78,7 +78,7 @@ declare module 'tiddlywiki' {
/**
* Invoke the hook by key
*/
invokeHook(hookName: string, event: IWidgetEvent): undefined | IWidgetEvent | undefined;
invokeHook(hookName: string, event: IWidgetEvent): undefined | IWidgetEvent;
// eslint-disable-next-line @typescript-eslint/ban-types
names: Record<string, Function[]>;
}
Expand Down

0 comments on commit 16f7928

Please sign in to comment.