diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 292108f6a3dc7e..14e226ef3bdda5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -30,7 +30,7 @@ jobs: matrix: ${{ steps.matrix.outputs.matrix }} steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: # Need this to be able to inquire about origin/master filter: blob:none # https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/ @@ -62,7 +62,7 @@ jobs: fail-fast: false steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: # Need this to be able to inquire about origin/master filter: blob:none # https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/ @@ -132,7 +132,7 @@ jobs: - test steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: ./.github/actions/setup-for-scripts - name: Get suggestions dir @@ -162,7 +162,7 @@ jobs: if: github.repository == 'DefinitelyTyped/DefinitelyTyped' steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: ./.github/actions/setup-for-scripts - run: pnpm tsc -p ./scripts diff --git a/.github/workflows/UpdateCodeowners.yml b/.github/workflows/UpdateCodeowners.yml index f1496f819c0912..98f7ff7712b3bf 100644 --- a/.github/workflows/UpdateCodeowners.yml +++ b/.github/workflows/UpdateCodeowners.yml @@ -21,7 +21,7 @@ jobs: if: github.repository == 'DefinitelyTyped/DefinitelyTyped' steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: fetch-depth: 0 diff --git a/.github/workflows/format-and-commit.yml b/.github/workflows/format-and-commit.yml index f6b5a4dbba1836..639ddb4fa76fd4 100644 --- a/.github/workflows/format-and-commit.yml +++ b/.github/workflows/format-and-commit.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest if: github.repository == 'DefinitelyTyped/DefinitelyTyped' steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: # Use a deploy key so that CI triggers on pushes; we want to know if formatting broke something. ssh-key: ${{ secrets.DEPLOY_KEY }} diff --git a/.github/workflows/ghostbuster.yml b/.github/workflows/ghostbuster.yml index e74fd77be4e42c..2f8c4cad9ffad7 100644 --- a/.github/workflows/ghostbuster.yml +++ b/.github/workflows/ghostbuster.yml @@ -23,7 +23,7 @@ jobs: if: github.repository == 'DefinitelyTyped/DefinitelyTyped' steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: ./.github/actions/setup-for-scripts - run: node ./scripts/ghostbuster.js > ${{ runner.temp }}/comment.md env: diff --git a/.github/workflows/lint-md.yml b/.github/workflows/lint-md.yml index e870d1146162c3..6187383ef47c46 100644 --- a/.github/workflows/lint-md.yml +++ b/.github/workflows/lint-md.yml @@ -11,6 +11,6 @@ jobs: runs-on: ubuntu-latest if: github.repository == 'DefinitelyTyped/DefinitelyTyped' steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: ./.github/actions/setup-for-scripts - run: pnpm remark --frail . .github diff --git a/.github/workflows/pnpm-cache.yml b/.github/workflows/pnpm-cache.yml index a2d0dccfd6ea4e..e411ef17f0ddff 100644 --- a/.github/workflows/pnpm-cache.yml +++ b/.github/workflows/pnpm-cache.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest if: ${{ github.repository == 'DefinitelyTyped/DefinitelyTyped' }} steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version: '20' diff --git a/.github/workflows/support-window.yml b/.github/workflows/support-window.yml index 905714c2378c7c..9d8cbbc138b2e2 100644 --- a/.github/workflows/support-window.yml +++ b/.github/workflows/support-window.yml @@ -23,7 +23,7 @@ jobs: if: github.repository == 'DefinitelyTyped/DefinitelyTyped' runs-on: ubuntu-latest steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: ./.github/actions/setup-for-scripts - name: Fetch TypeScript versions and release dates from npm diff --git a/types/google-apps-script/google-apps-script.script.d.ts b/types/google-apps-script/google-apps-script.script.d.ts index 3a2db89f0093f8..55dbe601fa9b14 100644 --- a/types/google-apps-script/google-apps-script.script.d.ts +++ b/types/google-apps-script/google-apps-script.script.d.ts @@ -146,6 +146,8 @@ declare namespace GoogleAppsScript { invalidateAuth(): void; newStateToken(): StateTokenBuilder; newTrigger(functionName: string): TriggerBuilder; + requireAllScopes(authMode: AuthMode): void; + requireScopes(authMode: AuthMode, oAuthScopes: string[]): void; /** @deprecated DO NOT USE */ getProjectKey(): string; /** @deprecated DO NOT USE */ getScriptTriggers(): Trigger[]; } diff --git a/types/webtorrent/index.d.ts b/types/webtorrent/index.d.ts index cecebd1d96e56c..435d2ccef23a87 100644 --- a/types/webtorrent/index.d.ts +++ b/types/webtorrent/index.d.ts @@ -126,7 +126,7 @@ declare namespace WebTorrent { torrentId: Torrent | string | Buffer, opts?: TorrentDestroyOptions, callback?: (err: Error | string) => void, - ): void; + ): Promise; destroy(callback?: (err: Error | string) => void): void; createServer( @@ -137,7 +137,7 @@ declare namespace WebTorrent { readonly torrents: Torrent[]; // eslint-disable-next-line @typescript-eslint/no-invalid-void-type - get(torrentId: Torrent | string | Buffer): Torrent | void; + get(torrentId: Torrent | string | Buffer): Promise; throttleDownload(rate: number): boolean | undefined;