mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-25 01:41:44 +00:00
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.
|
||||
* 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;
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue