Skip to content

remcohaszing/typescript-jsdoc-import-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

TypeScript bug reproduction

Steps to reproduce

Clone and setup the repo

git clone https://github.com/remcohaszing/typescript-jsdoc-import-bug.git
cd typescript-jsdoc-import-bug
npm ci

Build the project

npx tsc --build

Observe that TypeScript emits the following invalid content in dist/index.d.ts:

/**
 * @import {
 *   Program
 * } from 'estree'
 */
/**
 * @param {Program} program
 */
export function compile(program: *   Program): void;
import type { Program } from 'estree';

About

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project