interface-forge - v2.5.0
    Preparing search index...
    interface $ZodStringFormatInternals<
        Format extends $ZodStringFormats = $ZodStringFormats,
    > {
        def: $ZodStringFormatDef<Format>;
        issc: $ZodIssueInvalidStringFormat;
        isst: $ZodIssueInvalidType;
        onattach: ((schema: $ZodType) => void)[];
        pattern: RegExp;
        toJSONSchema?: () => unknown;
        version: { major: 4; minor: 0; patch: number };
        when?: (payload: ParsePayload) => boolean;
        check(payload: ParsePayload<string>): MaybeAsync<void>;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    Schema definition.

    The set of issues this check might throw.

    Internal API, use with caution (not deprecated)

    onattach: ((schema: $ZodType) => void)[]
    pattern: RegExp

    Internal API, use with caution (not deprecated)

    toJSONSchema?: () => unknown

    An optional method used to override toJSONSchema logic.

    version: { major: 4; minor: 0; patch: number }

    The @zod/core version of this schema

    when?: (payload: ParsePayload) => boolean

    Methods