TYPESCRIPT-BASICS5 MIN READ
Don't export your first-draft type
Decide when a TypeScript type should be exported as part of a module's public contract.
The module has several useful internal shapes, but callers only need the normalized event returned by the parser.
Read the full lesson
Sign up free — one personalized lesson every day, matched to your role and goals.
Already have an account? Sign in