• Preparing search index...
  • The search index is not available
binspector - v2.0.0
  • binspector
  • Validator
  • Validate

Function Validate

  • Validate<This, Value>(
        validatingFunction: ValidatorFunction<This, Value>,
        opt?: Partial<ValidatorOptions>,
    ): DecoratorType<This, Value>

    @Validate decorator

    Type Parameters

    • This

      The type of the class the decorator is applied to.

    • Value

      The type of the decorated property.

    Parameters

    • validatingFunction: ValidatorFunction<This, Value>

      A function that validates the value of the decorated property.

    • Optionalopt: Partial<ValidatorOptions>

      Optional configuration.

    Returns DecoratorType<This, Value>

    The property decorator function.

    • Defined in validator.ts:168

Settings

Member Visibility
binspector - v2.0.0
  • Loading...

Generated using TypeDoc