Skip to content

Conversation

@snewcomer
Copy link
Contributor

@snewcomer snewcomer commented May 26, 2022

WIP - trying to get this syntax to compile....

Previously, as on Typescript 3.8, we had the ability to import types, albeit on a new line.

import A from 'foo';
import type { AType } from 'foo';

As of 4.5, we can inline that type, making it easier to manage top level imports.

import A, { type AType } from 'foo';

fixer PR (in progress): typescript-eslint/typescript-eslint#5050. Once this is merged, I'll run it on the whole repo.
follow up: #20087

Docs: https://devblogs.microsoft.com/typescript/announcing-typescript-4-5/#type-on-import-names

@snewcomer snewcomer force-pushed the sn/type-modifier-import branch from 61d0e67 to 5ee8c16 Compare May 28, 2022 15:59
@kategengler
Copy link
Member

Is this still relevant? It is a draft PR

@NullVoxPopuli
Copy link
Contributor

I think it got implemented via #20593 and prior PRs.

@kategengler
Copy link
Member

Closing as completed

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.

4 participants