From ba7652a1dd2cc113af7e1e206b51d931d3ee43bf Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 13:53:48 -0700 Subject: [PATCH 1/4] Remove contributors with deleted accounts (#73847) Co-authored-by: TypeScript Bot --- types/webpack-hot-middleware/package.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/types/webpack-hot-middleware/package.json b/types/webpack-hot-middleware/package.json index a5ec0259f30d24..b9f41014b065df 100644 --- a/types/webpack-hot-middleware/package.json +++ b/types/webpack-hot-middleware/package.json @@ -27,10 +27,6 @@ "name": "Chris Abrams", "githubUsername": "chrisabrams" }, - { - "name": "Ilya Zelenko", - "githubUsername": "iliyaZelenko" - }, { "name": "Rodrigo Saboya", "githubUsername": "saboya" From be262b6aceb4fca48e89f15f1e4efed552185480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Narciso=20Garc=C3=ADa=20Revington?= Date: Mon, 6 Oct 2025 22:56:24 +0200 Subject: [PATCH 2/4] fix express-serve-static-core application event emitter types (#73681) --- .../express-serve-static-core-tests.ts | 4 ++++ types/express-serve-static-core/index.d.ts | 2 +- types/express-serve-static-core/package.json | 2 +- types/express-serve-static-core/v4/index.d.ts | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/types/express-serve-static-core/express-serve-static-core-tests.ts b/types/express-serve-static-core/express-serve-static-core-tests.ts index 85f3aea6c76ee3..62fd45e116ec61 100644 --- a/types/express-serve-static-core/express-serve-static-core-tests.ts +++ b/types/express-serve-static-core/express-serve-static-core-tests.ts @@ -349,3 +349,7 @@ app.get("/async", Promise.resolve); // Starting with Express 5, app.router is the app's in-built instance of router app.router.stack; + +app.on("mount", (app) => { + app; // $ExpectType Application +}); diff --git a/types/express-serve-static-core/index.d.ts b/types/express-serve-static-core/index.d.ts index 4664513ef759b0..31bbdf1ff4bc51 100644 --- a/types/express-serve-static-core/index.d.ts +++ b/types/express-serve-static-core/index.d.ts @@ -1230,7 +1230,7 @@ export interface Application< * - Not inherit the value of settings that have a default value. You must set the value in the sub-app. * - Inherit the value of settings with no default value. */ - on: (event: string, callback: (parent: Application) => void) => this; + on: (event: "mount", callback: (parent: Application) => void) => this; /** * The app.mountpath property contains one or more path patterns on which a sub-app was mounted. diff --git a/types/express-serve-static-core/package.json b/types/express-serve-static-core/package.json index 8b246601d2ce78..ec79ed235daa35 100644 --- a/types/express-serve-static-core/package.json +++ b/types/express-serve-static-core/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/express-serve-static-core", - "version": "5.0.9999", + "version": "5.1.9999", "projects": [ "http://expressjs.com" ], diff --git a/types/express-serve-static-core/v4/index.d.ts b/types/express-serve-static-core/v4/index.d.ts index aee3041de0bc2a..e9fd20acc3869b 100644 --- a/types/express-serve-static-core/v4/index.d.ts +++ b/types/express-serve-static-core/v4/index.d.ts @@ -1281,7 +1281,7 @@ export interface Application< * - Not inherit the value of settings that have a default value. You must set the value in the sub-app. * - Inherit the value of settings with no default value. */ - on: (event: string, callback: (parent: Application) => void) => this; + on: (event: 'mount', callback: (parent: Application) => void) => this; /** * The app.mountpath property contains one or more path patterns on which a sub-app was mounted. From 9d98e0958e229072d6bbbbbfb39f1732f7516266 Mon Sep 17 00:00:00 2001 From: TypeScript Bot Date: Mon, 6 Oct 2025 20:57:06 +0000 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=A4=96=20dprint=20fmt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/express-serve-static-core/v4/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/express-serve-static-core/v4/index.d.ts b/types/express-serve-static-core/v4/index.d.ts index e9fd20acc3869b..9e3d2502624a08 100644 --- a/types/express-serve-static-core/v4/index.d.ts +++ b/types/express-serve-static-core/v4/index.d.ts @@ -1281,7 +1281,7 @@ export interface Application< * - Not inherit the value of settings that have a default value. You must set the value in the sub-app. * - Inherit the value of settings with no default value. */ - on: (event: 'mount', callback: (parent: Application) => void) => this; + on: (event: "mount", callback: (parent: Application) => void) => this; /** * The app.mountpath property contains one or more path patterns on which a sub-app was mounted. From b349ab6be920ce93bd5ed88766b559cfe5db0ebf Mon Sep 17 00:00:00 2001 From: Jimmy Leung <43258070+hkleungai@users.noreply.github.com> Date: Tue, 7 Oct 2025 04:58:36 +0800 Subject: [PATCH 4/4] feat(react): add "closedby" to DialogHTMLAttributes (#73651) --- .../babel-plugin-react-html-attrs-tests.tsx | 14 +++++++++++++- types/babel-plugin-react-html-attrs/index.d.ts | 5 ++++- types/rax/index.d.ts | 3 +++ types/react/index.d.ts | 1 + types/react/test/elementAttributes.tsx | 6 ++++-- types/react/ts5.0/index.d.ts | 1 + types/react/ts5.0/test/elementAttributes.tsx | 6 ++++-- types/react/v16/index.d.ts | 1 + types/react/v16/test/elementAttributes.tsx | 6 ++++-- types/react/v17/index.d.ts | 1 + types/react/v17/test/elementAttributes.tsx | 6 ++++-- types/react/v18/index.d.ts | 1 + types/react/v18/test/elementAttributes.tsx | 6 ++++-- types/react/v18/ts5.0/index.d.ts | 1 + types/react/v18/ts5.0/test/elementAttributes.tsx | 6 ++++-- 15 files changed, 50 insertions(+), 14 deletions(-) diff --git a/types/babel-plugin-react-html-attrs/babel-plugin-react-html-attrs-tests.tsx b/types/babel-plugin-react-html-attrs/babel-plugin-react-html-attrs-tests.tsx index 522b9b43a68e00..a342734bd9f2a4 100644 --- a/types/babel-plugin-react-html-attrs/babel-plugin-react-html-attrs-tests.tsx +++ b/types/babel-plugin-react-html-attrs/babel-plugin-react-html-attrs-tests.tsx @@ -36,7 +36,19 @@ const htmlAttributesTest = ( - + + { + // $ExpectType SyntheticEvent + event; + }} + onClose={event => { + // $ExpectType SyntheticEvent + event; + }} + open + />
diff --git a/types/babel-plugin-react-html-attrs/index.d.ts b/types/babel-plugin-react-html-attrs/index.d.ts index b2c3931f9396bb..4987d700fe0ce2 100644 --- a/types/babel-plugin-react-html-attrs/index.d.ts +++ b/types/babel-plugin-react-html-attrs/index.d.ts @@ -2052,7 +2052,10 @@ declare namespace React { } interface DialogHTMLAttributes extends HTMLAttributes { - open?: boolean | string | undefined; + closedby?: "any" | "closerequest" | "none" | undefined; + onCancel?: ReactEventHandler | undefined; + onClose?: ReactEventHandler | undefined; + open?: boolean | undefined; } interface EmbedHTMLAttributes extends HTMLAttributes { diff --git a/types/rax/index.d.ts b/types/rax/index.d.ts index 6fc4967a6c4946..ed1a5604de2f7b 100644 --- a/types/rax/index.d.ts +++ b/types/rax/index.d.ts @@ -1683,6 +1683,9 @@ declare namespace Rax { } interface DialogHTMLAttributes extends HTMLAttributes { + closedby?: "any" | "closerequest" | "none" | undefined; + onCancel?: RaxEventHandler | undefined; + onClose?: RaxEventHandler | undefined; open?: boolean | undefined; } diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 5d82891b4a1bc0..00b03984285762 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -3036,6 +3036,7 @@ declare namespace React { } interface DialogHTMLAttributes extends HTMLAttributes { + closedby?: "any" | "closerequest" | "none" | undefined; onCancel?: ReactEventHandler | undefined; onClose?: ReactEventHandler | undefined; open?: boolean | undefined; diff --git a/types/react/test/elementAttributes.tsx b/types/react/test/elementAttributes.tsx index 469354f3e70287..22e7be732eb7ae 100644 --- a/types/react/test/elementAttributes.tsx +++ b/types/react/test/elementAttributes.tsx @@ -87,7 +87,9 @@ const testCases = [ test , + , { // $ExpectType SyntheticEvent event; @@ -96,8 +98,8 @@ const testCases = [ // $ExpectType SyntheticEvent event; }} - > - , + open + />, ,
, // Float diff --git a/types/react/ts5.0/index.d.ts b/types/react/ts5.0/index.d.ts index 3c2305eb280520..f05b815083b901 100644 --- a/types/react/ts5.0/index.d.ts +++ b/types/react/ts5.0/index.d.ts @@ -3035,6 +3035,7 @@ declare namespace React { } interface DialogHTMLAttributes extends HTMLAttributes { + closedby?: "any" | "closerequest" | "none" | undefined; onCancel?: ReactEventHandler | undefined; onClose?: ReactEventHandler | undefined; open?: boolean | undefined; diff --git a/types/react/ts5.0/test/elementAttributes.tsx b/types/react/ts5.0/test/elementAttributes.tsx index 469354f3e70287..22e7be732eb7ae 100644 --- a/types/react/ts5.0/test/elementAttributes.tsx +++ b/types/react/ts5.0/test/elementAttributes.tsx @@ -87,7 +87,9 @@ const testCases = [ test , + , { // $ExpectType SyntheticEvent event; @@ -96,8 +98,8 @@ const testCases = [ // $ExpectType SyntheticEvent event; }} - > - , + open + />, ,
, // Float diff --git a/types/react/v16/index.d.ts b/types/react/v16/index.d.ts index b6200c03ec623b..ac5eadc34935eb 100644 --- a/types/react/v16/index.d.ts +++ b/types/react/v16/index.d.ts @@ -2141,6 +2141,7 @@ declare namespace React { } interface DialogHTMLAttributes extends HTMLAttributes { + closedby?: "any" | "closerequest" | "none" | undefined; onCancel?: ReactEventHandler | undefined; onClose?: ReactEventHandler | undefined; open?: boolean | undefined; diff --git a/types/react/v16/test/elementAttributes.tsx b/types/react/v16/test/elementAttributes.tsx index 198316476d78c3..fa141fb2a6c993 100644 --- a/types/react/v16/test/elementAttributes.tsx +++ b/types/react/v16/test/elementAttributes.tsx @@ -54,7 +54,9 @@ const testCases = [ , + , { // $ExpectType SyntheticEvent event; @@ -63,8 +65,8 @@ const testCases = [ // $ExpectType SyntheticEvent event; }} - > - , + open + />, , <>