Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The exec readme provides what seems to be typescript examples #483

Closed
NorseGaud opened this issue May 30, 2020 · 0 comments
Closed

The exec readme provides what seems to be typescript examples #483

NorseGaud opened this issue May 30, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@NorseGaud
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant