Skip to content

fix import path for github-script in README#495

Open
yuheiy wants to merge 1 commit intoactions:mainfrom
yuheiy:fix-readme
Open

fix import path for github-script in README#495
yuheiy wants to merge 1 commit intoactions:mainfrom
yuheiy:fix-readme

Conversation

@yuheiy
Copy link
Copy Markdown

@yuheiy yuheiy commented Oct 22, 2024

No description provided.

@yuheiy yuheiy requested a review from a team as a code owner October 22, 2024 14:25
```js
// @ts-check
/** @param {import('@types/github-script').AsyncFunctionArguments} AsyncFunctionArguments */
/** @param {import('github-script').AsyncFunctionArguments} AsyncFunctionArguments */
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this not need to match the installed dependency above?

npm i -D @types/github-script@github:actions/github-script

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @types packages are automatically mapped to the packages with @types stripped off.

And importing @types/github-script causes error TS6137. Rewriting to github-script resolves this issue.

ref: microsoft/TypeScript#16472

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants