Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhacks committed Mar 7, 2023
1 parent 22f3cc6 commit 6dad907
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions deno/lib/types.ts
Expand Up @@ -4852,8 +4852,7 @@ export type ZodFirstPartySchemaTypes =
| ZodBranded<any, any>
| ZodPipeline<any, any>;

// new approach that works for abstract classes
// but requires TS 4.4+
// requires TS 4.4+
abstract class Class {
constructor(..._: any[]) {}
}
Expand Down
3 changes: 1 addition & 2 deletions src/types.ts
Expand Up @@ -4852,8 +4852,7 @@ export type ZodFirstPartySchemaTypes =
| ZodBranded<any, any>
| ZodPipeline<any, any>;

// new approach that works for abstract classes
// but requires TS 4.4+
// requires TS 4.4+
abstract class Class {
constructor(..._: any[]) {}
}
Expand Down

0 comments on commit 6dad907

Please sign in to comment.