Closed Himenon closed 3 years ago
What is your ts2gas
use case? There is likely better solution.
For example: https://github.com/PopGoesTheWza/ts-gas-project-starter
Since you are using async
syntax, I assume you are targeting V8 powered GAS.
Have you tried setting the compilerOptions.target
property to ES2018
,
{
compilerOptions: {
target: "ES2018",
},
}
https://github.com/grant/ts2gas/issues/58#issuecomment-790405370
That's true. That seems to be the solution to my problem. Thank you, @PopGoesTheWza !
I will leave the handling of this issue to you.
@Himenon do you confirm that changing the target
to ES2018
solved the issue?
Yes, this issue has been resolved by changing the target
to ES2018
.
Neat. Have a great day.
Input Source Code
Build with ts2gas
Conversion with TypeScript Playground
The judgment here seems to be wrong.