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
{{ message }}
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.
import*astsfrom'typescript';import*asdtsfrom'dts-element';constsource=`type X = A[B[C]];`;constsourceFile=ts.createSourceFile('test.ts',source,ts.ScriptTarget.Latest,false,ts.ScriptKind.TS,);console.log('[ts]',ts.createPrinter().printFile(sourceFile));console.log('[dts]',dts.emit(dts.parse(source)));
Expected
[ts] type X = A[B[C]];
[dts] type X = A[B[C]];
Actual
[ts] type X = A[B[C]];
[dts] type X = A[B[C]][C];
The text was updated successfully, but these errors were encountered:
Version
dts-element
v2.2.0typescript
v2.4.2Code
Expected
Actual
The text was updated successfully, but these errors were encountered: