(content: unknown, msg: string)
| 14 | // Validate content type to match JS magic-string behavior. |
| 15 | // napi-rs throws a generic Error on type mismatch, but JS magic-string throws TypeError. |
| 16 | function assertString(content: unknown, msg: string): asserts content is string { |
| 17 | if (typeof content !== 'string') throw new TypeError(msg); |
| 18 | } |
| 19 | |
| 20 | // Save native method refs before overriding. |
| 21 | // eslint-disable-next-line @typescript-eslint/unbound-method |
no outgoing calls
no test coverage detected
searching dependent graphs…