Skip to content

Commit

Permalink
tweak arg cast
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed May 10, 2024
1 parent bde52cc commit f6593ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/store/ts/config/v2/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export type mapEnums<enums> = {
};

export function mapEnums<enums extends EnumsInput>(enums: enums): resolveEnums<enums> {
return flatMorph(enums as never, (enumName, enumElements) => [
return flatMorph(enums as EnumsInput, (enumName, enumElements) => [
enumName,
flatMorph(enumElements, (enumIndex, enumElement) => [enumElement, enumIndex]),
]) as never;
Expand Down

0 comments on commit f6593ea

Please sign in to comment.