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' }} Copy
const validator: ScannedValidator = { name: 'createUserValidator', import: { type: 'named', specifier: '#validators/user_validators', value: 'createUserValidator' }}
The name/identifier of the validator
Import information for the validator
The type of import (namespace, default, or named)
The module specifier being imported from
The imported value name
Represents a validator that has been extracted from controller methods. Contains information about how the validator is imported and used.
Example