Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed Aug 25, 2024
1 parent 49df550 commit dd1e889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/schema/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
export interface TypeProps {
}

export type TypeNames = 'string' | 'number' | 'boolean' | 'object' | 'any' // | 'null' | 'undefined' | 'symbol' | 'bigint'
export type TypeNames = 'string' | 'number' | 'boolean' | 'object' | 'any' | string // | 'null' | 'undefined' | 'symbol' | 'bigint'

export interface Type<T = unknown> {
type: TypeNames

_optional?: boolean
_default?: T | (() => T)
_object?: SchemaDefinitionObject
_object?: SchemaDefinitionObject<Type<T>>
_union?: Type[]

_check: (obj: any) => boolean
Expand Down

0 comments on commit dd1e889

Please sign in to comment.