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
Describe the bug
The TypeScript definitions for GitHub of @actions/github are almost entirely wrong. They export a class with a single public method called graphql the takes an object of options.
This does not reflect the documentation or the actual library at all.
The documentation says you can do the following things:
LukasBombach
changed the title
TypeScript definitions for GitHub of @actions/github almost entirely wrong
TypeScript definitions for GitHub of @actions/github broken
Feb 28, 2020
Describe the bug
The TypeScript definitions for GitHub of
@actions/github
are almost entirely wrong. They export a class with a single public method calledgraphql
the takes an object of options.This does not reflect the documentation or the actual library at all.
The documentation says you can do the following things:
Instead TypeScript says the
octokit
only has a single method calledgraphql
expecting a single parameter only.To Reproduce
yarn init -y
yarn add @actions/github
touch index.ts
index.ts
add the following codeExpected behavior
TypeScript will reflect the API of the library and match the documentation
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: