I'm using the javascript template repo and trying to build out a simple Action. I'm wanting exec stdout and err so I use the example from https://github.com/actions/toolkit/tree/master/packages/exec#outputoptions in my index.js. However, VSCODE says Type annotations can only be used in TypeScript files.ts(8010).
I'm not experienced enough at Javascript to know what the non-Typescript version of the example code is. Isn't Typescript an option and not the default? Why would the examples in the docs be for Typescript and not for regular javascript?
Can someone help me understand? Thanks!
I'm using the javascript template repo and trying to build out a simple Action. I'm wanting exec stdout and err so I use the example from https://github.com/actions/toolkit/tree/master/packages/exec#outputoptions in my index.js. However, VSCODE says
Type annotations can only be used in TypeScript files.ts(8010).I'm not experienced enough at Javascript to know what the non-Typescript version of the example code is. Isn't Typescript an option and not the default? Why would the examples in the docs be for Typescript and not for regular javascript?
Can someone help me understand? Thanks!