(code: unknown)
| 31 | * @returns Whether the given code is valid. |
| 32 | */ |
| 33 | export function isValidCode(code: unknown): code is number { |
| 34 | return Number.isInteger(code); |
| 35 | } |
| 36 | |
| 37 | export function isValidString(value: unknown): value is string { |
| 38 | return typeof value === "string" && value.length > 0; |
no outgoing calls
no test coverage detected