Skip to content

Commit

Permalink
fix: tsdoc
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv committed Aug 18, 2023
1 parent 1e51022 commit d86dade
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"strict": true,
"noImplicitAny": false,
"outDir": "./dist",
"rootDir": "./lib",
}
}

0 comments on commit d86dade

Please sign in to comment.