Skip to content

Commit

Permalink
test(zipObj): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
GerkinDev committed Feb 23, 2024
1 parent d77185a commit a808e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/zipObj.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ expectType<{bool: boolean, number: number}>(zipObj(['bool', 'number'], [true, 1]
expectType<{[key: string]: boolean}>(zipObj(['a'] as string[], [true, false] as boolean[]));
expectType<{a: boolean}>(zipObj(['a'], [true, false] as boolean[]));
expectType<{[key: string]: boolean}>(zipObj(['a'] as string[], [true, false]));
expectType<{[key: string]: boolean | number | string}>(zipObj(['a', 'b', 'c'] as string[], [true, 1, 'a']));
expectType<{[key: string]: boolean | number | string}>(zipObj(['a', 'b', 'c'] as string[], [true, 1, 'a'] as (string | number | boolean)[]));
expectType<{bool: true, number: 1}>(zipObj(['bool', 'number'], [true, 1, 'string']));
expectType<{bool: true, number: 1, missing: undefined}>(zipObj(['bool', 'number', 'missing'], [true, 1]));

Expand Down

0 comments on commit a808e39

Please sign in to comment.