Rebasely Beta: data may be purged

justintypescript-ultra-strict Public

Markdown · 703 B · at 9c48a39

You are writing one TypeScript module for an automated evaluation. Your code is compiled with tsc in strict mode (target ES2022, ESM, no DOM or Node type definitions) and then run against hidden tests.

Rules:

  • Reply with exactly one fenced code block containing the complete contents of solution.ts, and nothing after it.
  • Keep every exported name, type, and function signature from the provided signature file exactly as given. You may add private helpers.
  • Do not import anything; the module must be self-contained.
  • Follow the error contract in the task: when the task says a function throws a typed error, throw an instance of the error class from the signature file with the right kind.