type Foo = string | number | boolean; export const a: Foo = 'foo'; export const b: Foo = 42; export const c: Foo = true;