Skip to content

Commit 62e9714

Browse files
rootroot
authored andcommitted
2 parents 536a5a8 + 68e896d commit 62e9714

18 files changed

+216
-59
lines changed

.github/workflows/codeql.yml

Lines changed: 83 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,100 @@
1-
name: 'Code Scanning - Action'
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL Advanced"
213

314
on:
415
push:
5-
branches:
6-
- main
16+
branches: [ "main" ]
717
pull_request:
8-
branches:
9-
- main
18+
branches: [ "main" ]
1019
schedule:
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
20+
- cron: '19 8 * * 6'
3021

3122
jobs:
32-
CodeQL-Build:
33-
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
34-
runs-on: ubuntu-latest
35-
if: github.repository == 'microsoft/TypeScript-DOM-lib-generator'
36-
23+
analyze:
24+
name: Analyze (${{ matrix.language }})
25+
# Runner size impacts CodeQL analysis time. To learn more, please see:
26+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
27+
# - https://gh.io/supported-runners-and-hardware-resources
28+
# - https://gh.io/using-larger-runners (GitHub.com only)
29+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
30+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
3731
permissions:
3832
# required for all workflows
3933
security-events: write
4034

41-
steps:
42-
- name: Checkout repository
43-
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
35+
# required to fetch internal or private CodeQL packs
36+
packages: read
37+
38+
# only required for workflows in private repositories
39+
actions: read
40+
contents: read
4441

45-
# Initializes the CodeQL tools for scanning.
46-
- name: Initialize CodeQL
47-
uses: github/codeql-action/init@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
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
42+
strategy:
43+
fail-fast: false
44+
matrix:
45+
include:
46+
- language: actions
47+
build-mode: none
48+
- language: javascript-typescript
49+
build-mode: none
50+
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
51+
# Use `c-cpp` to analyze code written in C, C++ or both
52+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
53+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
54+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
55+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
56+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
57+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
58+
steps:
59+
- name: Checkout repository
60+
uses: actions/checkout@v4
5361

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@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
62+
# Add any setup steps before running the `github/codeql-action/init` action.
63+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
64+
# or others). This is typically only required for manual builds.
65+
# - name: Setup runtime (example)
66+
# uses: actions/setup-example@v1
5867

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
68+
# Initializes the CodeQL tools for scanning.
69+
- name: Initialize CodeQL
70+
uses: github/codeql-action/init@v4
71+
with:
72+
languages: ${{ matrix.language }}
73+
build-mode: ${{ matrix.build-mode }}
74+
# If you wish to specify custom queries, you can do so here or in a config file.
75+
# By default, queries listed here will override any specified in a config file.
76+
# Prefix the list here with "+" to use these queries and those in the config file.
6177

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
78+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
79+
# queries: security-extended,security-and-quality
6580

66-
#- run: |
67-
# make bootstrap
68-
# make release
81+
# If the analyze step fails for one of the languages you are analyzing with
82+
# "We were unable to automatically build your code", modify the matrix above
83+
# to set the build mode to "manual" for that language. Then modify this step
84+
# to build your code.
85+
# ℹ️ Command-line programs to run using the OS shell.
86+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
87+
- if: matrix.build-mode == 'manual'
88+
shell: bash
89+
run: |
90+
echo 'If you are using a "manual" build mode for one or more of the' \
91+
'languages you are analyzing, replace this with the commands to build' \
92+
'your code, for example:'
93+
echo ' make bootstrap'
94+
echo ' make release'
95+
exit 1
6996
70-
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
97+
- name: Perform CodeQL Analysis
98+
uses: github/codeql-action/analyze@v4
99+
with:
100+
category: "/language:${{matrix.language}}"

baselines/dom.generated.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9168,8 +9168,11 @@ interface DOMMatrix extends DOMMatrixReadOnly {
91689168
declare var DOMMatrix: {
91699169
prototype: DOMMatrix;
91709170
new(init?: string | number[]): DOMMatrix;
9171+
/** The **`fromFloat32Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of single-precision (32-bit) floating-point values. */
91719172
fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrix;
9173+
/** The **`fromFloat64Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of double-precision (64-bit) floating-point values. */
91729174
fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrix;
9175+
/** The **`fromMatrix()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an existing matrix or an object which provides the values for its properties. */
91739176
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
91749177
};
91759178

@@ -9345,8 +9348,11 @@ interface DOMMatrixReadOnly {
93459348
declare var DOMMatrixReadOnly: {
93469349
prototype: DOMMatrixReadOnly;
93479350
new(init?: string | number[]): DOMMatrixReadOnly;
9351+
/** The **`fromFloat32Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of single-precision (32-bit) floating-point values. */
93489352
fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrixReadOnly;
9353+
/** The **`fromFloat64Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of double-precision (64-bit) floating-point values. */
93499354
fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrixReadOnly;
9355+
/** The **`fromMatrix()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an existing matrix or an object which provides the values for its properties. */
93509356
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
93519357
};
93529358

@@ -9517,7 +9523,9 @@ interface DOMQuad {
95179523
declare var DOMQuad: {
95189524
prototype: DOMQuad;
95199525
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
9526+
/** The **`fromQuad()`** static method of the DOMQuad interface returns a new `DOMQuad` object based on the provided set of coordinates in the shape of another `DOMQuad` object. */
95209527
fromQuad(other?: DOMQuadInit): DOMQuad;
9528+
/** The **`fromRect()`** static method of the DOMQuad interface returns a new `DOMQuad` object based on the provided set of coordinates in the shape of a DOMRect object. */
95219529
fromRect(other?: DOMRectInit): DOMQuad;
95229530
};
95239531

@@ -32806,7 +32814,7 @@ declare var TimeRanges: {
3280632814
};
3280732815

3280832816
/**
32809-
* The **`ToggleEvent`** interface represents an event notifying the user an Element's state has changed.
32817+
* The **`ToggleEvent`** interface represents an event that fires when a popover element is toggled between being shown and hidden.
3281032818
*
3281132819
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent)
3281232820
*/

baselines/serviceworker.generated.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2606,8 +2606,11 @@ interface DOMMatrix extends DOMMatrixReadOnly {
26062606
declare var DOMMatrix: {
26072607
prototype: DOMMatrix;
26082608
new(init?: string | number[]): DOMMatrix;
2609+
/** The **`fromFloat32Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of single-precision (32-bit) floating-point values. */
26092610
fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrix;
2611+
/** The **`fromFloat64Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of double-precision (64-bit) floating-point values. */
26102612
fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrix;
2613+
/** The **`fromMatrix()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an existing matrix or an object which provides the values for its properties. */
26112614
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
26122615
};
26132616

@@ -2776,8 +2779,11 @@ interface DOMMatrixReadOnly {
27762779
declare var DOMMatrixReadOnly: {
27772780
prototype: DOMMatrixReadOnly;
27782781
new(init?: string | number[]): DOMMatrixReadOnly;
2782+
/** The **`fromFloat32Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of single-precision (32-bit) floating-point values. */
27792783
fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrixReadOnly;
2784+
/** The **`fromFloat64Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of double-precision (64-bit) floating-point values. */
27802785
fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrixReadOnly;
2786+
/** The **`fromMatrix()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an existing matrix or an object which provides the values for its properties. */
27812787
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
27822788
};
27832789

@@ -2926,7 +2932,9 @@ interface DOMQuad {
29262932
declare var DOMQuad: {
29272933
prototype: DOMQuad;
29282934
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
2935+
/** The **`fromQuad()`** static method of the DOMQuad interface returns a new `DOMQuad` object based on the provided set of coordinates in the shape of another `DOMQuad` object. */
29292936
fromQuad(other?: DOMQuadInit): DOMQuad;
2937+
/** The **`fromRect()`** static method of the DOMQuad interface returns a new `DOMQuad` object based on the provided set of coordinates in the shape of a DOMRect object. */
29302938
fromRect(other?: DOMRectInit): DOMQuad;
29312939
};
29322940

baselines/sharedworker.generated.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2387,8 +2387,11 @@ interface DOMMatrix extends DOMMatrixReadOnly {
23872387
declare var DOMMatrix: {
23882388
prototype: DOMMatrix;
23892389
new(init?: string | number[]): DOMMatrix;
2390+
/** The **`fromFloat32Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of single-precision (32-bit) floating-point values. */
23902391
fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrix;
2392+
/** The **`fromFloat64Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of double-precision (64-bit) floating-point values. */
23912393
fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrix;
2394+
/** The **`fromMatrix()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an existing matrix or an object which provides the values for its properties. */
23922395
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
23932396
};
23942397

@@ -2557,8 +2560,11 @@ interface DOMMatrixReadOnly {
25572560
declare var DOMMatrixReadOnly: {
25582561
prototype: DOMMatrixReadOnly;
25592562
new(init?: string | number[]): DOMMatrixReadOnly;
2563+
/** The **`fromFloat32Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of single-precision (32-bit) floating-point values. */
25602564
fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrixReadOnly;
2565+
/** The **`fromFloat64Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of double-precision (64-bit) floating-point values. */
25612566
fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrixReadOnly;
2567+
/** The **`fromMatrix()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an existing matrix or an object which provides the values for its properties. */
25622568
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
25632569
};
25642570

@@ -2707,7 +2713,9 @@ interface DOMQuad {
27072713
declare var DOMQuad: {
27082714
prototype: DOMQuad;
27092715
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
2716+
/** The **`fromQuad()`** static method of the DOMQuad interface returns a new `DOMQuad` object based on the provided set of coordinates in the shape of another `DOMQuad` object. */
27102717
fromQuad(other?: DOMQuadInit): DOMQuad;
2718+
/** The **`fromRect()`** static method of the DOMQuad interface returns a new `DOMQuad` object based on the provided set of coordinates in the shape of a DOMRect object. */
27112719
fromRect(other?: DOMRectInit): DOMQuad;
27122720
};
27132721

baselines/ts5.5/dom.generated.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9157,8 +9157,11 @@ interface DOMMatrix extends DOMMatrixReadOnly {
91579157
declare var DOMMatrix: {
91589158
prototype: DOMMatrix;
91599159
new(init?: string | number[]): DOMMatrix;
9160+
/** The **`fromFloat32Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of single-precision (32-bit) floating-point values. */
91609161
fromFloat32Array(array32: Float32Array): DOMMatrix;
9162+
/** The **`fromFloat64Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of double-precision (64-bit) floating-point values. */
91619163
fromFloat64Array(array64: Float64Array): DOMMatrix;
9164+
/** The **`fromMatrix()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an existing matrix or an object which provides the values for its properties. */
91629165
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
91639166
};
91649167

@@ -9334,8 +9337,11 @@ interface DOMMatrixReadOnly {
93349337
declare var DOMMatrixReadOnly: {
93359338
prototype: DOMMatrixReadOnly;
93369339
new(init?: string | number[]): DOMMatrixReadOnly;
9340+
/** The **`fromFloat32Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of single-precision (32-bit) floating-point values. */
93379341
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
9342+
/** The **`fromFloat64Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of double-precision (64-bit) floating-point values. */
93389343
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
9344+
/** The **`fromMatrix()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an existing matrix or an object which provides the values for its properties. */
93399345
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
93409346
};
93419347

@@ -9506,7 +9512,9 @@ interface DOMQuad {
95069512
declare var DOMQuad: {
95079513
prototype: DOMQuad;
95089514
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
9515+
/** The **`fromQuad()`** static method of the DOMQuad interface returns a new `DOMQuad` object based on the provided set of coordinates in the shape of another `DOMQuad` object. */
95099516
fromQuad(other?: DOMQuadInit): DOMQuad;
9517+
/** The **`fromRect()`** static method of the DOMQuad interface returns a new `DOMQuad` object based on the provided set of coordinates in the shape of a DOMRect object. */
95109518
fromRect(other?: DOMRectInit): DOMQuad;
95119519
};
95129520

@@ -32780,7 +32788,7 @@ declare var TimeRanges: {
3278032788
};
3278132789

3278232790
/**
32783-
* The **`ToggleEvent`** interface represents an event notifying the user an Element's state has changed.
32791+
* The **`ToggleEvent`** interface represents an event that fires when a popover element is toggled between being shown and hidden.
3278432792
*
3278532793
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent)
3278632794
*/

0 commit comments

Comments
 (0)