Describe the feature
I think this part of code isn't longer necessary:
|
// TypeScript incorrectly reports an error when re-exporting types in a d.ts file. |
|
// We use @ts-ignore to suppress the error since it actually works. |
|
const strings: string[] = [] |
|
if (typeImports.size) { |
|
const typeImportNames = Array.from(typeImports).map(({ name, as }) => { |
|
if (as && as !== name) |
|
return `${name} as ${as}` |
|
return name |
|
}) |
|
strings.push( |
|
'// @ts-ignore', |
|
`export type { ${typeImportNames.join(', ')} } from '${from}'`, |
|
) |
|
} |
|
if (starTypeImport) { |
|
strings.push( |
|
'// @ts-ignore', |
|
`export type * as ${starTypeImport.as} from '${from}'`, |
|
) |
|
} |
TS doesn't report any error anymore.
Additional information
Describe the feature
I think this part of code isn't longer necessary:
unimport/src/utils.ts
Lines 247 to 266 in e908b92
TS doesn't report any error anymore.
Additional information