From 7a343aa4967d0ff08726c228a37dcfcd92dc45d2 Mon Sep 17 00:00:00 2001 From: bhavz-10 Date: Fri, 17 Feb 2023 14:27:03 +0530 Subject: [PATCH 1/3] Change js files to typescript --- .../higher-order/with-spoken-messages/{index.js => index.tsx} | 0 .../with-spoken-messages/test/{index.js => index.tsx} | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) rename packages/components/src/higher-order/with-spoken-messages/{index.js => index.tsx} (100%) rename packages/components/src/higher-order/with-spoken-messages/test/{index.js => index.tsx} (90%) diff --git a/packages/components/src/higher-order/with-spoken-messages/index.js b/packages/components/src/higher-order/with-spoken-messages/index.tsx similarity index 100% rename from packages/components/src/higher-order/with-spoken-messages/index.js rename to packages/components/src/higher-order/with-spoken-messages/index.tsx diff --git a/packages/components/src/higher-order/with-spoken-messages/test/index.js b/packages/components/src/higher-order/with-spoken-messages/test/index.tsx similarity index 90% rename from packages/components/src/higher-order/with-spoken-messages/test/index.js rename to packages/components/src/higher-order/with-spoken-messages/test/index.tsx index ea8efec351bc4f..b4d37eaa840962 100644 --- a/packages/components/src/higher-order/with-spoken-messages/test/index.js +++ b/packages/components/src/higher-order/with-spoken-messages/test/index.tsx @@ -12,7 +12,8 @@ describe( 'withSpokenMessages', () => { it( 'should generate speak and debouncedSpeak props', () => { const testSpeak = jest.fn(); const testDebouncedSpeak = jest.fn(); - const isFunction = ( maybeFunc ) => typeof maybeFunc === 'function'; + const isFunction = ( maybeFunc: any ) => + typeof maybeFunc === 'function'; const DumpComponent = withSpokenMessages( ( { speak, debouncedSpeak } ) => { testSpeak( isFunction( speak ) ); From 34447fecedbafb6848df34abef77d79fedf260d3 Mon Sep 17 00:00:00 2001 From: bhavz-10 Date: Fri, 3 Mar 2023 23:36:09 +0530 Subject: [PATCH 2/3] Add details in changelog Signed-off-by: bhavz-10 --- packages/components/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 3e4e32ffdf955f..58a2dfde4c261a 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -23,6 +23,7 @@ - `Higher Order` -- `with-constrained-tabbing`: Convert to TypeScript ([#48162](https://github.com/WordPress/gutenberg/pull/48162)). - `Autocomplete`: Convert to TypeScript ([#47751](https://github.com/WordPress/gutenberg/pull/47751)). - `Autocomplete`: avoid calling setState on input ([#48565](https://github.com/WordPress/gutenberg/pull/48565)). +- `withSpokenMessages`: HOC: Convert to TypeScript ([#48163](https://github.com/WordPress/gutenberg/pull/48163)). ## 23.4.0 (2023-02-15) From 1737e660e32fb6f62860a0119768515aa25fed47 Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Mon, 6 Mar 2023 12:44:17 +0900 Subject: [PATCH 3/3] Fixup changelog --- packages/components/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 58a2dfde4c261a..94e84cf3a1e6ee 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -8,6 +8,7 @@ - `PanelBody`: Convert to TypeScript ([#47702](https://github.com/WordPress/gutenberg/pull/47702)). - `withFallbackStyles` HOC: Convert to TypeScript ([#48720](https://github.com/WordPress/gutenberg/pull/48720)). - `navigateRegions` HOC: Convert to TypeScript ([#48632](https://github.com/WordPress/gutenberg/pull/48632)). +- `withSpokenMessages`: HOC: Convert to TypeScript ([#48163](https://github.com/WordPress/gutenberg/pull/48163)). ## 23.5.0 (2023-03-01) @@ -23,7 +24,6 @@ - `Higher Order` -- `with-constrained-tabbing`: Convert to TypeScript ([#48162](https://github.com/WordPress/gutenberg/pull/48162)). - `Autocomplete`: Convert to TypeScript ([#47751](https://github.com/WordPress/gutenberg/pull/47751)). - `Autocomplete`: avoid calling setState on input ([#48565](https://github.com/WordPress/gutenberg/pull/48565)). -- `withSpokenMessages`: HOC: Convert to TypeScript ([#48163](https://github.com/WordPress/gutenberg/pull/48163)). ## 23.4.0 (2023-02-15)