Documentation
    Preparing search index...

    Interface BaseObjectSchema<Raw, Parsed>

    interface BaseObjectSchema<Raw, Parsed> {
        _getParsedProperties: () => (keyof Parsed)[];
        _getRawProperties: () => (keyof Raw)[];
        getType: () => SchemaType;
        json: (parsed: unknown, opts?: SchemaOptions) => MaybeValid<Raw>;
        parse: (raw: unknown, opts?: SchemaOptions) => MaybeValid<Parsed>;
    }

    Type Parameters

    • Raw
    • Parsed

    Hierarchy

    Index

    Properties

    _getParsedProperties: () => (keyof Parsed)[]
    _getRawProperties: () => (keyof Raw)[]
    getType: () => SchemaType
    json: (parsed: unknown, opts?: SchemaOptions) => MaybeValid<Raw>
    parse: (raw: unknown, opts?: SchemaOptions) => MaybeValid<Parsed>