Skip to content

Commit

Permalink
Updated to latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelelz committed Nov 10, 2023
1 parent 53f9ac7 commit bbe70df
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drizzle-orm/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,6 @@ export type ValidateShape<T, ValidShape, TResult = T> = T extends ValidShape
>
: never;

export type ValidateShape<T, ValidShape> = T extends ValidShape ? Exclude<keyof T, keyof ValidShape> extends never ? T
: Exclude<keyof T, keyof ValidShape> extends string ? `Invalid key(s): ${Exclude<keyof T, keyof ValidShape>}`
: never
: never;

export type KnownKeysOnly<T, U> = {
[K in keyof T]: K extends keyof U ? T[K] : never;
};
Expand Down

0 comments on commit bbe70df

Please sign in to comment.