Documentation
    Preparing search index...

    Represents a validator that has been extracted from controller methods. Contains information about how the validator is imported and used.

    const validator: ScannedValidator = {
    name: 'createUserValidator',
    import: {
    type: 'named',
    specifier: '#validators/user_validators',
    value: 'createUserValidator'
    }
    }
    type ScannedValidator = {
        name: string;
        import: {
            type: "namespace" | "default" | "named";
            specifier: string;
            value: string;
        };
    }
    Index

    Properties

    Properties

    name: string

    The name/identifier of the validator

    import: {
        type: "namespace" | "default" | "named";
        specifier: string;
        value: string;
    }

    Import information for the validator

    Type Declaration

    • type: "namespace" | "default" | "named"

      The type of import (namespace, default, or named)

    • specifier: string

      The module specifier being imported from

    • value: string

      The imported value name