Documentation
    Preparing search index...

    Type Alias IValidationHook<Class>

    IValidationHook: {
        [K in keyof Class]?: Class[K] extends (args: infer Argument) => unknown
            ? (input: unknown) => IValidation<Argument>
            : never
    }

    Type-safe mapping of method names to custom validators.

    Maps each method name to a validation function that receives the raw input and returns a validation result. The type inference ensures validators match the expected argument types.

    Type Parameters

    • Class extends object

      The source class type for type inference