forked from profectus/Profectus
Make OptionsFunc include the options in the typing for this
This commit is contained in:
parent
8fce6ac23e
commit
d7041a3c3c
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