From 15fc88e2475e493743dea7b3ab51eb73e6a9042e Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sun, 26 Jun 2022 23:00:41 -0500 Subject: [PATCH] Make OptionsFunc include the options in the typing for `this` --- src/features/feature.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/features/feature.ts b/src/features/feature.ts index 61cd7ed..c2f34f5 100644 --- a/src/features/feature.ts +++ b/src/features/feature.ts @@ -42,7 +42,9 @@ export type Replace = S & Omit; * with "this" bound to what the type will eventually be processed into. * Intended for making lazily evaluated objects. */ -export type OptionsFunc, S = R> = () => T & Partial & ThisType; +export type OptionsFunc, S = R> = () => T & + Partial & + ThisType; let id = 0; /**