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
preProcessFile, type only import, ambientExternalModules
Code
importtsfrom"typescript";consttext=`import type { Func } from "./subdir/types.ts";const func: Func = t => t;`;console.log(ts.preProcessFile(text,true));
Expected behavior:
That the type only import would be referenced somehow. As of TypeScript 3.8, ambientExternalModules was introduced, so I can only assume that is where it should go, but it isn't populated. In addition, ambientExternalModules is of type string[] unlike the other properties which are FileReference[].
TypeScript Version: 3.8.3
Search Terms:
preProcessFile, type only import, ambientExternalModules
Code
Expected behavior:
That the type only import would be referenced somehow. As of TypeScript 3.8,
ambientExternalModules
was introduced, so I can only assume that is where it should go, but it isn't populated. In addition,ambientExternalModules
is of typestring[]
unlike the other properties which areFileReference[]
.Actual behavior:
The text was updated successfully, but these errors were encountered: