Skip to content

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

@NorseGaud

Description

@NorseGaud

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions