Skip to content

Commit

Permalink
Fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Danofu authored and Daniil Borysov committed Jan 25, 2024
1 parent e296653 commit 984f1ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export type IsRecord<T> = T extends object
* Check if a type is a class type.
*/

export type IsClass<T> = T extends { new(...args: any[]): any } ? T : never;
export type IsClass<T> = T extends { new (...args: any[]): any } ? T : never

/**
* Check if a type is a tuple.
Expand Down Expand Up @@ -383,7 +383,7 @@ export type StructSchema<T> = [T] extends [string | undefined | null]
: T extends object
? T extends IsClass<T>
? null
: T extends IsRecord<T>
: T extends IsRecord<T>
? null
: { [K in keyof T]: Describe<T[K]> }
: null
Expand Down

0 comments on commit 984f1ac

Please sign in to comment.