(path?: string)
| 2 | // Copyright the Browserify authors. MIT License. |
| 3 | |
| 4 | export function assertPath(path?: string) { |
| 5 | if (typeof path !== "string") { |
| 6 | throw new TypeError( |
| 7 | `Path must be a string, received "${JSON.stringify(path)}"`, |
| 8 | ); |
| 9 | } |
| 10 | } |
no test coverage detected