| 1 | // No @types/node in this project (kept dependency-free), so these are the |
| 2 | // minimal ambient declarations node --test and node:assert/strict need to |
| 3 | // type-check under tsconfig.test.json's DOM-flavoured lib. |
| 4 | declare module 'node:test' { |
| 5 | export function test(name: string, fn: () => void | Promise<void>): void; |
| 6 | } |
| 7 | |
| 8 | declare module 'node:assert/strict' { |
| 9 | interface Assert { |
| 10 | equal(actual: unknown, expected: unknown, message?: string): void; |
| 11 | deepEqual(actual: unknown, expected: unknown, message?: string): void; |
| 12 | } |
| 13 | const assert: Assert; |
| 14 | export default assert; |
| 15 | } |