interface IStorage<T> { all(): AsyncGenerator<T[], void, unknown>; rmd(id,
func): Promise<boolean>; rmw<X>(id,
func): Promise<X>; } Methods
all
- all(): AsyncGenerator<T[], void, unknown>
Returns AsyncGenerator<T[], void, unknown>
rmd
- rmd(id, func): Promise<boolean>
Parameters
- id: string
- func: ((item) => boolean)
- (item): boolean
Returns boolean
Returns Promise<boolean>
rmw
- rmw<X>(id, func): Promise<X>
Parameters
- id: string
- func: ((item) => X)
Returns Promise<X>