TypeScript · Middle · Question 71 of 75
What does export type * from './types' do (TS 5.0+)?
- ✓Correct answer: Re-exports all types from a module so they can be used only in type positions
- 2Exports runtime values as types
- 3Converts classes to interfaces
Explanation
It's fully erased at compile time and pairs well with verbatimModuleSyntax and type-only barrels.