(path: string, suffix: string)
| 43 | } |
| 44 | |
| 45 | export function assertArgs(path: string, suffix: string) { |
| 46 | assertPath(path); |
| 47 | if (path.length === 0) return path; |
| 48 | if (typeof suffix !== "string") { |
| 49 | throw new TypeError( |
| 50 | `Suffix must be a string, received "${JSON.stringify(suffix)}"`, |
| 51 | ); |
| 52 | } |
| 53 | } |
no test coverage detected