From 6042efe18a8ab92b988712130bf3e1ea9f7e1656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Tue, 29 Aug 2023 12:10:16 +0200 Subject: [PATCH] fix: use Node and not string for the new file menu handler arg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- lib/newFileMenu.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/newFileMenu.ts b/lib/newFileMenu.ts index 68759e604..c54dad897 100644 --- a/lib/newFileMenu.ts +++ b/lib/newFileMenu.ts @@ -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 {