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
Unfortunately tsc treats d.ts and ts file differently
a.ts
const a: string; // error
a.d.ts
const a :string // no error
so we can't use normal typescript parser to parse d.ts file, fortunately tsc parser has an option to control the parser behavior babel/babel-loader#912 (comment), so we should enable this option to handle dts file correctly
The text was updated successfully, but these errors were encountered:
Unfortunately tsc treats d.ts and ts file differently
so we can't use normal typescript parser to parse d.ts file, fortunately tsc parser has an option to control the parser behavior babel/babel-loader#912 (comment), so we should enable this option to handle dts file correctly
The text was updated successfully, but these errors were encountered: