Skip to content

Conversation

RomainLanz
Copy link
Member

Hey! 👋🏻

Since TypeScript 3.8 we can use import type instead of import for anything only type related.

import type only imports declarations to be used for type annotations and declarations. It always gets fully erased, so there’s no remnant of it at runtime. Similarly, export type only provides an export that can be used for type contexts, and is also erased from TypeScript’s output.

@thetutlage
Copy link
Member

Yeah makes sense

@thetutlage thetutlage merged commit ec413ad into develop Feb 22, 2022
@RomainLanz RomainLanz deleted the feat/templates branch February 22, 2022 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants