@hidden Create a new instance with the given validators
(validators: Array<Validator<T>>)
| 352 | Create a new instance with the given validators |
| 353 | */ |
| 354 | protected withValidators(validators: Array<Validator<T>>): this { |
| 355 | // eslint-disable-next-line @typescript-eslint/naming-convention |
| 356 | const Constructor = this.constructor as new (...arguments_: unknown[]) => this; |
| 357 | const instance = new Constructor(this.options, validators); |
| 358 | return instance; |
| 359 | } |
| 360 | } |
no outgoing calls
no test coverage detected