WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 6a1c07c

Browse files
committed
removed unused generic
1 parent 6725904 commit 6a1c07c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/assoc.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function assoc<K extends keyof U, U>(prop: K, __: Placeholder, obj: U): <
1313
// assoc(prop, __, obj)(val), when prop is not keyof obj
1414
export function assoc<K extends PropertyKey, U>(prop: K extends Placeholder ? never : K, __: Placeholder, obj: U): <T>(val: T) => U & Record<K, T>;
1515
// assoc (__, __, obj)
16-
export function assoc<K extends PropertyKey, U>(__: Placeholder, __2: Placeholder, obj: U): {
16+
export function assoc<U>(__: Placeholder, __2: Placeholder, obj: U): {
1717
// assoc(__, __, obj)(prop, val) when prop is keyof obj and val is same type
1818
<K extends keyof U>(prop: K, val: U[K]): U;
1919
// assoc(__, __, obj)(prop, val) when prop is keyof obj and val is not same type

0 commit comments

Comments
 (0)