Skip to main content
Go to Latest
File
import { TypeBuilder } from 'https://esm.sh/@sinclair/typebox@0.25.16'import type { ObjectId } from './realm/mod.ts'
class CustomTypeBuilder extends TypeBuilder { public any public array public boolean public date public enum public integer public intersect public keyof public literal public never public null public number public object public objectId public omit public optional public parameters public partial public pick public record public recursive public ref public regexp public required public strict public string public tuple public uint8Array public undefined public union public unknown public unsafe public void
constructor() { super()
this.any = super.Any this.array = super.Array this.boolean = super.Boolean this.date = super.Date this.enum = super.Enum this.integer = super.Integer this.intersect = super.Intersect this.keyof = super.KeyOf this.literal = super.Literal this.never = super.Never this.null = super.Null this.number = super.Number this.object = super.Object this.objectId = () => super.Unsafe<ObjectId>({ bsonType: 'objectId' }) this.omit = super.Omit this.optional = super.Optional this.parameters = super.Parameters this.partial = super.Partial this.pick = super.Pick this.record = super.Record this.recursive = super.Recursive this.ref = super.Ref this.regexp = super.RegEx this.required = super.Required this.strict = super.Strict this.string = super.String this.tuple = super.Tuple this.uint8Array = super.Uint8Array this.undefined = super.Undefined this.union = super.Union this.unknown = super.Unknown this.unsafe = super.Unsafe this.void = super.Void }}
export const v = new CustomTypeBuilder()