#4807·wasp

Investigate applying defaults in Typescript spec mapper

Author: infomihoCreated Sep 7, 2026Updated Sep 17, 2026
Labelshmmrefactoringwasp ts spec

JSDoc @default tags describe effective defaults, but TypeScript preserves omitted values as undefined. Haskell applies the defaults later.

Examples

What we should do

Decide where we apply defaults:

  • in the TypeScript mapper so the resulting spec contains the default value,
  • or in Haskell so we keep the compiler as source of truth?