You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import * as ts form 'typescript' can't support autocompletion because the source comes after the imported identifiers. Let's do it the right way up: import from 'typescript' * as ts (just like Linq does) so we go naturally from a whole to a part, not the other way around
The text was updated successfully, but these errors were encountered:
I'll note that import from "typescript" * as ts is not really useful because you can name the import whatever the heck you want.
The real use would be when you're importing individual members of an import like import { A, B, C } from "the-alphabet". The usual proposal is from "typescript" import { SyntaxKind }.
Believe me, I completely get it, but I don't think we could do this without the committee. I wouldn't be against us trying to work with the committee to get an alternate syntax in, but that's a separate problem in general.
import * as ts form 'typescript'
can't support autocompletion because the source comes after the imported identifiers. Let's do it the right way up:import from 'typescript' * as ts
(just like Linq does) so we go naturally from a whole to a part, not the other way aroundThe text was updated successfully, but these errors were encountered: