Skip to content

Commit

Permalink
fix: use Node and not string for the new file menu handler arg
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv committed Aug 29, 2023
1 parent 7a543c2 commit 6042efe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/newFileMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ export interface Entry {
/**
* Function to be run after creation
* @param {Folder} context the creation context. Usually the current folder
* @param {string[]} fileList list of file names present in the destination folder
* @param {Node[]} content list of file/folders present in the context folder
*/
handler: (context: Folder, fileList: string[]) => void
handler: (context: Folder, content: Node[]) => void
}

export class NewFileMenu {
Expand Down

0 comments on commit 6042efe

Please sign in to comment.