refactor: make all() take filter
and sort
options
refactor: return unload item entries from all()/find()
This commit is contained in:
parent
3214d17b80
commit
05178c924f
8 changed files with 308 additions and 206 deletions
|
@ -67,7 +67,7 @@ export class FSDB_INDEXER_SYMLINKS<T> implements FSDB_INDEXER<T> {
|
|||
return [value];
|
||||
}
|
||||
|
||||
async lookup(value: string, options?: FSDB_SEARCH_OPTIONS): Promise<string[]> {
|
||||
async lookup(value: string, options?: FSDB_SEARCH_OPTIONS<T>): Promise<string[]> {
|
||||
if (typeof this.config.root !== 'string') {
|
||||
throw new Error('root should have been set by FSDB instance');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue