Type Aliases
Memosel
Memosel
: { (): SelectorBuilder<{}, {}, void, never>; <P>(): SelectorBuilder<P, {}, void, never>; <P, R>(fn
: ((param
: P) => R), options
?: Options): Selector<P, R>; <F, R, P, K>(fn
: ((param
: P,
...args
: K) => R), key
: ((...args
: F) => K), options
?: Options): SelectorFactory<F, P, R> }Type declaration
- (): SelectorBuilder<{}, {}, void, never>
- <P>(): SelectorBuilder<P, {}, void, never>
- <P, R>(fn: ((param: P) => R), options?: Options): Selector<P, R>
- <F, R, P, K>(fn: ((param: P, ...args: K) => R), key: ((...args: F) => K), options?: Options): SelectorFactory<F, P, R>
Type Parameters
Type Parameters
Parameters
fn: ((param: P) => R)
Optional options: Options
Type Parameters
F extends any[]
R
P
K extends any[]
Parameters
fn: ((param: P, ...args: K) => R)
- (param: P, ...args: K): R
key: ((...args: F) => K)
Optional options: Options
Functions
default
- default(): SelectorBuilder<{}, {}, void, never>
- default<P>(): SelectorBuilder<P, {}, void, never>
- default<P, R>(fn: ((param: P) => R), options?: Options): Selector<P, R>
- default<F, R, P, K>(fn: ((param: P, ...args: K) => R), key: ((...args: F) => K), options?: Options): SelectorFactory<F, P, R>
Type Parameters
Type Parameters
Parameters
fn: ((param: P) => R)
Optional options: Options
Type Parameters
F extends any[]
R
P
K extends any[]
Parameters
fn: ((param: P, ...args: K) => R)
- (param: P, ...args: K): R
key: ((...args: F) => K)
Optional options: Options
create a memoized function