We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0495799 commit 65b0d82Copy full SHA for 65b0d82
src/types.ts
@@ -20,12 +20,3 @@ export type ValueOrFunction<D extends number, T> =
20
| T
21
| ((vector: Vector<D>) => T)
22
| null;
23
-
24
-// Removed as it would cause the vector parameter to have a type of any instead of Vector
25
-// export type ValueOrFunction<D extends number, T> =
26
-// | (T extends boolean
27
-// ? boolean | SelfAwareCallback<D, boolean> // To solve boolean expansion: https://github.com/microsoft/TypeScript/issues/30029
28
-// : T extends any // To solve non-callable expression bug: https://github.com/microsoft/TypeScript/issues/37663
29
-// ? T | SelfAwareCallback<D, T>
30
-// : never)
31
-// | null;
0 commit comments