fix import path for github-script in README

This commit is contained in:
Yuhei Yasuda 2024-10-22 23:24:36 +09:00
parent 660ec11d82
commit 462ace7f3e

View file

@ -437,7 +437,7 @@ $ npm i -D @types/github-script@github:actions/github-script
And then add the `jsDoc` declaration to your script like this: And then add the `jsDoc` declaration to your script like this:
```js ```js
// @ts-check // @ts-check
/** @param {import('@types/github-script').AsyncFunctionArguments} AsyncFunctionArguments */ /** @param {import('github-script').AsyncFunctionArguments} AsyncFunctionArguments */
export default async ({ core, context }) => { export default async ({ core, context }) => {
core.debug("Running something at the moment"); core.debug("Running something at the moment");
return context.actor; return context.actor;