Skip to content

Commit 898bad6

Browse files
authored
Merge branch 'main' into genericDomEvents
2 parents 96fd961 + 27fa26c commit 898bad6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2646
-1406
lines changed

.github/workflows/codeowners-merge.yml

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
issue_comment: { types: [created] }
55
pull_request_review: { types: [submitted] }
66

7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
711
jobs:
812
build:
913
runs-on: ubuntu-latest

.github/workflows/codeql.yml

+59-22
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,71 @@
1-
# copied from microsoft/TypeScript; see that file for boilerplate commentary
2-
# (which was certainly copied from somewhere else)
3-
name: "Code scanning - action"
1+
name: 'Code Scanning - Action'
42

53
on:
64
push:
5+
branches:
6+
- main
77
pull_request:
8+
branches:
9+
- main
810
schedule:
9-
- cron: '0 19 * * 0'
11+
# ┌───────────── minute (0 - 59)
12+
# │ ┌───────────── hour (0 - 23)
13+
# │ │ ┌───────────── day of the month (1 - 31)
14+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
15+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
16+
# │ │ │ │ │
17+
# │ │ │ │ │
18+
# │ │ │ │ │
19+
# * * * * *
20+
- cron: '30 1 * * 0'
21+
22+
permissions:
23+
contents: read
24+
25+
# Ensure scripts are run with pipefail. See:
26+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
27+
defaults:
28+
run:
29+
shell: bash
1030

1131
jobs:
1232
CodeQL-Build:
13-
33+
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
1434
runs-on: ubuntu-latest
1535
if: github.repository == 'microsoft/TypeScript-DOM-lib-generator'
1636

37+
permissions:
38+
# required for all workflows
39+
security-events: write
40+
1741
steps:
18-
- name: Checkout repository
19-
uses: actions/checkout@v3
20-
with:
21-
# We must fetch at least the immediate parents so that if this is
22-
# a pull request then we can checkout the head.
23-
fetch-depth: 2
24-
25-
- name: Initialize CodeQL
26-
uses: github/codeql-action/init@v2
27-
with:
28-
config-file: ./.github/codeql/codeql-configuration.yml
29-
30-
- name: Autobuild
31-
uses: github/codeql-action/autobuild@v2
32-
33-
- name: Perform CodeQL Analysis
34-
uses: github/codeql-action/analyze@v2
42+
- name: Checkout repository
43+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
44+
45+
# Initializes the CodeQL tools for scanning.
46+
- name: Initialize CodeQL
47+
uses: github/codeql-action/init@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0
48+
with:
49+
config-file: ./.github/codeql/codeql-configuration.yml
50+
# Override language selection by uncommenting this and choosing your languages
51+
# with:
52+
# languages: go, javascript, csharp, python, cpp, java
53+
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55+
# If this step fails, then you should remove it and run the build manually (see below).
56+
- name: Autobuild
57+
uses: github/codeql-action/autobuild@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0
58+
59+
# ℹ️ Command-line programs to run using the OS shell.
60+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
61+
62+
# ✏️ If the Autobuild fails above, remove it and uncomment the following
63+
# three lines and modify them (or add more) to build your code if your
64+
# project uses a compiled language
65+
66+
#- run: |
67+
# make bootstrap
68+
# make release
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This tool is used to generate the web-based `lib.dom.d.ts` file which is include
66

77
A feature needs to be supported by two or more major browser engines to be included here, to make sure there is a good consensus among vendors: __Gecko__ (Firefox), __Blink__ (Chrome/Edge), and __WebKit__ (Safari).
88

9-
If the condition is met but still is not available here, first check the [contribution guidelines](#contribution-guidelines) below and then please [file an issue](hthttps://github.com/microsoft/TypeScript-DOM-lib-generator/issues/new).
9+
If the condition is met but still is not available here, first check the [contribution guidelines](#contribution-guidelines) below and then please [file an issue](https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/new).
1010

1111
## Build Instructions
1212

baselines/audioworklet.generated.d.ts

+32-26
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ declare var AbortSignal: {
225225
new(): AbortSignal;
226226
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
227227
abort(reason?: any): AbortSignal;
228+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
229+
any(signals: AbortSignal[]): AbortSignal;
228230
};
229231

230232
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope) */
@@ -1067,7 +1069,11 @@ declare var URLSearchParams: {
10671069
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
10681070
};
10691071

1070-
/** Available only in secure contexts. */
1072+
/**
1073+
* Available only in secure contexts.
1074+
*
1075+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkletGlobalScope)
1076+
*/
10711077
interface WorkletGlobalScope {
10721078
}
10731079

@@ -1143,44 +1149,44 @@ declare var WritableStreamDefaultWriter: {
11431149

11441150
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */
11451151
interface Console {
1146-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert) */
1152+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */
11471153
assert(condition?: boolean, ...data: any[]): void;
1148-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear) */
1154+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */
11491155
clear(): void;
1150-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count) */
1156+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */
11511157
count(label?: string): void;
1152-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset) */
1158+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */
11531159
countReset(label?: string): void;
1154-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug) */
1160+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */
11551161
debug(...data: any[]): void;
1156-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir) */
1162+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */
11571163
dir(item?: any, options?: any): void;
1158-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml) */
1164+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */
11591165
dirxml(...data: any[]): void;
1160-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error) */
1166+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */
11611167
error(...data: any[]): void;
1162-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group) */
1168+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */
11631169
group(...data: any[]): void;
1164-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed) */
1170+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */
11651171
groupCollapsed(...data: any[]): void;
1166-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd) */
1172+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */
11671173
groupEnd(): void;
1168-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info) */
1174+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */
11691175
info(...data: any[]): void;
1170-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log) */
1176+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */
11711177
log(...data: any[]): void;
1172-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table) */
1178+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */
11731179
table(tabularData?: any, properties?: string[]): void;
1174-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time) */
1180+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */
11751181
time(label?: string): void;
1176-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd) */
1182+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */
11771183
timeEnd(label?: string): void;
1178-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog) */
1184+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */
11791185
timeLog(label?: string, ...data: any[]): void;
11801186
timeStamp(label?: string): void;
1181-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace) */
1187+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */
11821188
trace(...data: any[]): void;
1183-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn) */
1189+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */
11841190
warn(...data: any[]): void;
11851191
}
11861192

@@ -1249,11 +1255,11 @@ declare namespace WebAssembly {
12491255
var Module: {
12501256
prototype: Module;
12511257
new(bytes: BufferSource): Module;
1252-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections) */
1258+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections_static) */
12531259
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
1254-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports) */
1260+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */
12551261
exports(moduleObject: Module): ModuleExportDescriptor[];
1256-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports) */
1262+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports_static) */
12571263
imports(moduleObject: Module): ModuleImportDescriptor[];
12581264
};
12591265

@@ -1334,12 +1340,12 @@ declare namespace WebAssembly {
13341340
type Imports = Record<string, ModuleImports>;
13351341
type ModuleImports = Record<string, ImportValue>;
13361342
type ValueType = keyof ValueTypeMap;
1337-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile) */
1343+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile_static) */
13381344
function compile(bytes: BufferSource): Promise<Module>;
1339-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate) */
1345+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate_static) */
13401346
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
13411347
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
1342-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate) */
1348+
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */
13431349
function validate(bytes: BufferSource): boolean;
13441350
}
13451351

baselines/audioworklet.iterable.generated.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
/// AudioWorklet Iterable APIs
33
/////////////////////////////
44

5+
interface AbortSignal {
6+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
7+
any(signals: Iterable<AbortSignal>): AbortSignal;
8+
}
9+
510
interface MessageEvent<T = any> {
611
/**
712
* @deprecated

0 commit comments

Comments
 (0)