(str?: string | RegExp)
| 3 | export class StringChecker extends TypeChecker { |
| 4 | str?: string | RegExp; |
| 5 | constructor(str?: string | RegExp) { |
| 6 | super(); |
| 7 | this.str = str; |
| 8 | } |
| 9 | check(obj: unknown): void { |
| 10 | if (this.str === undefined) { |
| 11 | if (typeof obj !== "string") throw new Error(`${obj} is not a string`); |
nothing calls this directly
no outgoing calls
no test coverage detected