Skip to content

Commit 8c36fba

Browse files
committed
fix after rebase
1 parent 3439749 commit 8c36fba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

types/util/tools.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ export type WidenLiterals<T> =
505505
* Alias for the common result type for the `assoc` function
506506
*/
507507
export type AssocResults<K extends PropertyKey, T, U> = U extends Record<K, any> ? T extends U[K] ? U : Omit<U, K> & Record<K, T> : Omit<U, K> & Record<K, T>;
508+
508509
/**
509510
* Extract the types from an array
510511
* Works with Tuples, eg `ElementOf<typeof ['p1', 'p2']>` => `'p1' | 'p2'`

0 commit comments

Comments
 (0)