Make OptionsFunc include the options in the typing for this
This commit is contained in:
parent
00eea1de78
commit
15fc88e247
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,9 @@ export type Replace<T, S> = S & Omit<T, keyof S>;
|
||||||
* with "this" bound to what the type will eventually be processed into.
|
* with "this" bound to what the type will eventually be processed into.
|
||||||
* Intended for making lazily evaluated objects.
|
* Intended for making lazily evaluated objects.
|
||||||
*/
|
*/
|
||||||
export type OptionsFunc<T, R = Record<string, unknown>, S = R> = () => T & Partial<R> & ThisType<S>;
|
export type OptionsFunc<T, R = Record<string, unknown>, S = R> = () => T &
|
||||||
|
Partial<R> &
|
||||||
|
ThisType<T & S>;
|
||||||
|
|
||||||
let id = 0;
|
let id = 0;
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue