Skip to content

Commit

Permalink
fix: AllKeys should be defined
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaellis committed Sep 13, 2022
1 parent 288e5c5 commit 0ef2954
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/types/util.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ type Intersect<U> = (U extends any ? (k: U) => void : never) extends (
? I
: never

export type AllKeys<T> = T extends any ? keyof T : never

export type Exclusive<T> = AllKeys<T> extends infer K
? T extends any
? Remap<
Expand Down

1 comment on commit 0ef2954

@vercel
Copy link

@vercel vercel bot commented on 0ef2954 Sep 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.