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 2c57be0 commit 7597f6eCopy full SHA for 7597f6e
src/index.ts
@@ -257,8 +257,12 @@ class TypedParameters<T extends Record<string, ParameterConstruct<any>>> {
257
}
258
259
260
-export const createTypedParameters = <
+export type TypedParametersConstruct<
261
+ T extends Record<string, ParameterConstruct<any>>
262
+> = TypedParameters<T>;
263
+
264
+export const createTypedParameters: <
265
T extends Record<string, ParameterConstruct<any>>
266
>(
- t: (parameterType: typeof ParameterType) => T
-) => new TypedParameters(t(ParameterType));
267
+ f: (parameterType: typeof ParameterType) => T
268
+) => TypedParametersConstruct<T> = f => new TypedParameters(f(ParameterType));
0 commit comments