Variable valueValidatorsConst

valueValidators: {
    any(): Validator<any, unknown>;
    null(): Validator<null, unknown>;
    nullish(): Validator<undefined | null, unknown>;
    undefined(): Validator<undefined, unknown>;
} = ...

Type declaration

  • any:function
    • Returns Validator<any, unknown>

  • null:function
    • Creates a validator that asserts that the input is strictly null.

      Returns Validator<null, unknown>

  • nullish:function
    • Creates a validator that asserts that the input is nullish.

      Returns Validator<undefined | null, unknown>

  • undefined:function
    • Creates a validator that asserts that the input is strictly undefined.

      Returns Validator<undefined, unknown>