Skip to content

Commit

Permalink
fix: export TypedParametersConstruct
Browse files Browse the repository at this point in the history
  • Loading branch information
KDxCBdP7 committed May 8, 2022
1 parent 2c57be0 commit 7597f6e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,12 @@ class TypedParameters<T extends Record<string, ParameterConstruct<any>>> {
}
}

export const createTypedParameters = <
export type TypedParametersConstruct<
T extends Record<string, ParameterConstruct<any>>
> = TypedParameters<T>;

export const createTypedParameters: <
T extends Record<string, ParameterConstruct<any>>
>(
t: (parameterType: typeof ParameterType) => T
) => new TypedParameters(t(ParameterType));
f: (parameterType: typeof ParameterType) => T
) => TypedParametersConstruct<T> = f => new TypedParameters(f(ParameterType));

0 comments on commit 7597f6e

Please sign in to comment.