Skip to content

Commit

Permalink
fix: tsdoc
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Aug 18, 2023
1 parent a68ebaa commit e154887
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/newFileMenu.ts
Expand Up @@ -72,12 +72,13 @@ export class NewFileMenu {
/**
* Get the list of registered entries
*
* @param {Folder} context the creation context. Usually the current folder FileInfo
* @param {Folder} context the creation context. Usually the current folder
* @param {View} view the current view
*/
public getEntries(context?: Folder): Array<Entry> {
if (context) {
public getEntries(context?: Folder, view?: View): Array<Entry> {
if (context && view) {
return this._entries
.filter(entry => typeof entry.if === 'function' ? entry.if(context) : true)
.filter(entry => typeof entry.if === 'function' ? entry.if(context, view) : true)
}
return this._entries
}
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Expand Up @@ -9,5 +9,6 @@
"strict": true,
"noImplicitAny": false,
"outDir": "./dist",
"rootDir": "./lib",
}
}

0 comments on commit e154887

Please sign in to comment.