* Parse type-only import specifiers * Add type-only export specifiers * Update transform and emit * Update checking * Fix elision when combined with importsNotUsedAsValues=preserve * Accept baselines * Add test * WIP auto imports updates * First auto-imports test working * More auto-import tests * Fix auto imports of type-only exports * Add test for promoting type-only import * Sort import/export specifiers by type-onlyness * Update completions for `import { type |` * Update other completions tests * Respect organize imports sorting when promoting type-only to regular while adding a specifier * Fix comment mistakes * Update src/services/codefixes/importFixes.ts Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> * Rearrange some order of assignments in parser * Split huge if statement * Remove redundant check * Update new transformer * Fix import statement completions * Fix type keyword completions good grief * Fix last tests Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
18 lines
637 B
Plaintext
18 lines
637 B
Plaintext
=== /exports.ts ===
|
|
export function Component() {}
|
|
>Component : Symbol(Component, Decl(exports.ts, 0, 0))
|
|
|
|
export interface ComponentProps {}
|
|
>ComponentProps : Symbol(ComponentProps, Decl(exports.ts, 0, 30))
|
|
|
|
=== /index.ts ===
|
|
import { Component, ComponentProps } from "./exports.js";
|
|
>Component : Symbol(Component, Decl(index.ts, 0, 8))
|
|
>ComponentProps : Symbol(ComponentProps, Decl(index.ts, 0, 19))
|
|
|
|
=== /index.fixed.ts ===
|
|
import { Component, type ComponentProps } from "./exports.js";
|
|
>Component : Symbol(Component, Decl(index.fixed.ts, 0, 8))
|
|
>ComponentProps : Symbol(ComponentProps, Decl(index.fixed.ts, 0, 19))
|
|
|