Command Palette

Search for a command to run...

Hectal
Phase 11: Modules and Declaration Files
TypeScript · Exercise 4 of 5 PreviousNext
Intermediate

Make these exports isolatedDeclarations-safe

This example turns on isolatedDeclarations, so every export must carry written types where one file alone can't infer them. Three exports fail. Add the types they need.

Don't change the values. Don't use any. The program prints 30 7 12.

What Check tests

  1. Your code has no type errors
  2. The program prints 30 7 12
  3. You did not use any

Stuck? One hint at a time

The solution unlocks after your first Check. Try first: that is where the learning happens.

Runs in your browser. Your code is saved here.

Console

Nothing printed yet.