-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Open
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generation
Milestone
Description
I tried the following snippet
/**
* @typedef {
* import('../src/index.js').FakeCloudwatchLogs
* } FakeCloudwatchLogs
*/This did not compile with
test/index.js:11:6 - error TS1005: '}' expected.
11 * import('../src/index.js').FakeCloudwatchLogs
~~~~~~
Removing the * and writing
/**
* @typedef {
import('../src/index.js').FakeCloudwatchLogs
* } FakeCloudwatchLogs
*/Does compile.
I am using typsecript 3.8.3
There is a related issue
noyainrain
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generation