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