Skip to content

Commit 9db7297

Browse files
committed
fix(util.ts): changes custom type Omit to extend keyof T
1 parent 333fb6b commit 9db7297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,4 @@ export function destructurePropsForOptions<T>(
197197
* Construct a type with the properties of T except for those in type K.
198198
* Including this allows for backwards compatibility with earlier versions of TS.
199199
*/
200-
export type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
200+
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;

0 commit comments

Comments
 (0)