Skip to content

Commit 5a0aded

Browse files
committed
tests and other updates
1 parent dfde053 commit 5a0aded

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/rebuild.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ const newObj3 = rebuild(([k, v]) => {
2222
}, oldObj);
2323

2424
expectType<Record<string, Record<string, string>>>(newObj3);
25+
26+
const diffValueTypes = { foo: 123, bar: 'blah' };
27+
28+
const updated = rebuild(([k, v]) =>[[k, v]], diffValueTypes);
29+
expectType<Record<string, string | number>>(updated);

0 commit comments

Comments
 (0)