mini-effect
    Preparing search index...

    Interface EndsWithAction<TInput$1, TRequirement, TMessage>

    Ends with action interface.

    interface EndsWithAction<
        TInput$1 extends string,
        TRequirement extends string,
        TMessage extends
            ErrorMessage<EndsWithIssue<TInput$1, TRequirement>> | undefined,
    > {
        "~run": (
            dataset: OutputDataset<TInput$1, BaseIssue<unknown>>,
            config: Config<BaseIssue<unknown>>,
        ) => OutputDataset<
            TInput$1,
            BaseIssue<unknown>
            | EndsWithIssue<TInput$1, TRequirement>,
        >;
        "~types"?: { input: TInput$1; issue: EndsWithIssue; output: TInput$1 };
        async: false;
        expects: `"${TRequirement}"`;
        kind: "validation";
        message: TMessage;
        reference: {
            <TInput$1 extends string, const TRequirement extends string>(
                requirement: TRequirement,
            ): EndsWithAction<TInput$1, TRequirement, undefined>;
            <
                TInput$1 extends string,
                const TRequirement extends string,
                const TMessage extends
                    ErrorMessage<EndsWithIssue<TInput$1, TRequirement>> | undefined,
            >(
                requirement: TRequirement,
                message: TMessage,
            ): EndsWithAction<TInput$1, TRequirement, TMessage>;
        };
        requirement: TRequirement;
        type: "ends_with";
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    "~run": (
        dataset: OutputDataset<TInput$1, BaseIssue<unknown>>,
        config: Config<BaseIssue<unknown>>,
    ) => OutputDataset<
        TInput$1,
        BaseIssue<unknown>
        | EndsWithIssue<TInput$1, TRequirement>,
    >

    Validates known input values.

    Type Declaration

    "~types"?: { input: TInput$1; issue: EndsWithIssue; output: TInput$1 }

    The input, output and issue type.

    async: false

    Whether it's async.

    expects: `"${TRequirement}"`

    The expected property.

    kind: "validation"

    The object kind.

    message: TMessage

    The error message.

    reference: {
        <TInput$1 extends string, const TRequirement extends string>(
            requirement: TRequirement,
        ): EndsWithAction<TInput$1, TRequirement, undefined>;
        <
            TInput$1 extends string,
            const TRequirement extends string,
            const TMessage extends
                ErrorMessage<EndsWithIssue<TInput$1, TRequirement>> | undefined,
        >(
            requirement: TRequirement,
            message: TMessage,
        ): EndsWithAction<TInput$1, TRequirement, TMessage>;
    }

    The action reference.

    Type Declaration

      • <TInput$1 extends string, const TRequirement extends string>(
            requirement: TRequirement,
        ): EndsWithAction<TInput$1, TRequirement, undefined>
      • Creates an ends with validation action.

        Type Parameters

        • TInput$1 extends string
        • const TRequirement extends string

        Parameters

        • requirement: TRequirement

          The end string.

        Returns EndsWithAction<TInput$1, TRequirement, undefined>

        An ends with action.

      • <
            TInput$1 extends string,
            const TRequirement extends string,
            const TMessage extends
                ErrorMessage<EndsWithIssue<TInput$1, TRequirement>> | undefined,
        >(
            requirement: TRequirement,
            message: TMessage,
        ): EndsWithAction<TInput$1, TRequirement, TMessage>
      • Creates an ends with validation action.

        Type Parameters

        • TInput$1 extends string
        • const TRequirement extends string
        • const TMessage extends ErrorMessage<EndsWithIssue<TInput$1, TRequirement>> | undefined

        Parameters

        • requirement: TRequirement

          The end string.

        • message: TMessage

          The error message.

        Returns EndsWithAction<TInput$1, TRequirement, TMessage>

        An ends with action.

    requirement: TRequirement

    The end string.

    type: "ends_with"

    The action type.