Skip to content

Commit

Permalink
types: fix key inference in nullable maps, fix #56
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Feb 2, 2024
1 parent dcbdf81 commit 3115abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Eval } from './eval'
export type Values<S> = S[keyof S]

export type Keys<O, T = any> = Values<{
[K in keyof O]: O[K] extends T ? K : never
[K in keyof O]: O[K] extends T | undefined ? K : never
}> & string

export type Atomic = number | string | boolean | bigint | symbol | Date
Expand Down

0 comments on commit 3115abd

Please sign in to comment.