mini-effect
    Preparing search index...

    Interface NullishSchema<TWrapped$1, TDefault>

    Nullish schema interface.

    interface NullishSchema<
        TWrapped$1 extends BaseSchema<unknown, unknown, BaseIssue<unknown>>,
        TDefault extends Default<TWrapped$1, null | undefined>,
    > {
        "~run": (
            dataset: UnknownDataset,
            config: Config<BaseIssue<unknown>>,
        ) => OutputDataset<
            InferNullishOutput<TWrapped$1, TDefault>,
            InferIssue<TWrapped$1>,
        >;
        "~standard": StandardProps<
            InferInput<TWrapped$1>
            | null
            | undefined,
            InferNullishOutput<TWrapped$1, TDefault>,
        >;
        "~types"?: {
            input: InferInput<TWrapped$1> | null | undefined;
            issue: InferIssue;
            output: InferNullishOutput;
        };
        async: false;
        default: TDefault;
        expects: `(${TWrapped$1["expects"]} | null | undefined)`;
        kind: "schema";
        reference: {
            <
                const TWrapped$1 extends
                    BaseSchema<unknown, unknown, BaseIssue<unknown>>,
            >(
                wrapped: TWrapped$1,
            ): NullishSchema<TWrapped$1, undefined>;
            <
                const TWrapped$1 extends
                    BaseSchema<unknown, unknown, BaseIssue<unknown>>,
                const TDefault extends unknown,
            >(
                wrapped: TWrapped$1,
                default_: TDefault,
            ): NullishSchema<TWrapped$1, TDefault>;
        };
        type: "nullish";
        wrapped: TWrapped$1;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    "~run": (
        dataset: UnknownDataset,
        config: Config<BaseIssue<unknown>>,
    ) => OutputDataset<
        InferNullishOutput<TWrapped$1, TDefault>,
        InferIssue<TWrapped$1>,
    >

    Parses unknown input values.

    Type Declaration

    "~standard": StandardProps<
        InferInput<TWrapped$1>
        | null
        | undefined,
        InferNullishOutput<TWrapped$1, TDefault>,
    >

    The Standard Schema properties.

    "~types"?: {
        input: InferInput<TWrapped$1> | null | undefined;
        issue: InferIssue;
        output: InferNullishOutput;
    }

    The input, output and issue type.

    async: false

    Whether it's async.

    default: TDefault

    The default value.

    expects: `(${TWrapped$1["expects"]} | null | undefined)`

    The expected property.

    kind: "schema"

    The object kind.

    reference: {
        <
            const TWrapped$1 extends
                BaseSchema<unknown, unknown, BaseIssue<unknown>>,
        >(
            wrapped: TWrapped$1,
        ): NullishSchema<TWrapped$1, undefined>;
        <
            const TWrapped$1 extends
                BaseSchema<unknown, unknown, BaseIssue<unknown>>,
            const TDefault extends unknown,
        >(
            wrapped: TWrapped$1,
            default_: TDefault,
        ): NullishSchema<TWrapped$1, TDefault>;
    }

    The schema reference.

    Type Declaration

      • <const TWrapped$1 extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(
            wrapped: TWrapped$1,
        ): NullishSchema<TWrapped$1, undefined>
      • Creates a nullish schema.

        Type Parameters

        Parameters

        • wrapped: TWrapped$1

          The wrapped schema.

        Returns NullishSchema<TWrapped$1, undefined>

        A nullish schema.

      • <
            const TWrapped$1 extends
                BaseSchema<unknown, unknown, BaseIssue<unknown>>,
            const TDefault extends unknown,
        >(
            wrapped: TWrapped$1,
            default_: TDefault,
        ): NullishSchema<TWrapped$1, TDefault>
      • Creates a nullish schema.

        Type Parameters

        • const TWrapped$1 extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
        • const TDefault extends unknown

        Parameters

        • wrapped: TWrapped$1

          The wrapped schema.

        • default_: TDefault

          The default value.

        Returns NullishSchema<TWrapped$1, TDefault>

        A nullish schema.

    type: "nullish"

    The schema type.

    wrapped: TWrapped$1

    The wrapped schema.