From 05c2c6b290d2c3319439458128dd604d09d3a292 Mon Sep 17 00:00:00 2001 From: Chang Wei Date: Tue, 19 Nov 2024 21:36:21 +0800 Subject: [PATCH 1/3] Update official-typings-bugs.md (#760) --- README.md | 2 +- docs/basic/troubleshooting/official-typings-bugs.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e6a82477..f5219bf8 100644 --- a/README.md +++ b/README.md @@ -2652,7 +2652,7 @@ const f = (e: PlotlyHTMLElement) => { }; ``` -You dont always have to implement the module, you can simply import the module as `any` for a quick start: +You don't always have to implement the module, you can simply import the module as `any` for a quick start: ```tsx // my-typings.ts diff --git a/docs/basic/troubleshooting/official-typings-bugs.md b/docs/basic/troubleshooting/official-typings-bugs.md index 0254ef3b..37d89304 100644 --- a/docs/basic/troubleshooting/official-typings-bugs.md +++ b/docs/basic/troubleshooting/official-typings-bugs.md @@ -36,7 +36,7 @@ const f = (e: PlotlyHTMLElement) => { }; ``` -You dont always have to implement the module, you can simply import the module as `any` for a quick start: +You don't always have to implement the module, you can simply import the module as `any` for a quick start: ```tsx // my-typings.ts From c8c50f6ea8b6681b8abbcf47973b58bca58a7296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Tammerg=C3=A5rd?= <44197016+filiptammergard@users.noreply.github.com> Date: Sat, 11 Jan 2025 20:37:07 +0100 Subject: [PATCH 2/3] Fix link in migrating cheatsheet (#772) Resolves https://github.com/typescript-cheatsheets/react/issues/767. --- docs/migration/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/migration/index.md b/docs/migration/index.md index b7b60afd..06341963 100644 --- a/docs/migration/index.md +++ b/docs/migration/index.md @@ -23,7 +23,7 @@ Read [TypeScript's official Guide for migrating from JS](https://www.typescriptl - "[Just rename all .js files to .ts](https://twitter.com/jamonholmgren/status/1089241726303199232)"? - use the loosest, bare minimum settings to start with - Level 2: Strict TypeScript - - use Microsoft's [`dts-gen`](https://github.com/Microsoft/dts-gen) to generate `.d.ts` files for your untyped files. [This SO answer](https://stackoverflow.com/questions/12687779/how-do-you-produce-a-d-ts-typings-definition-file-from-an-existing-javascript) has more on the topic. + - use Microsoft's [`dts-gen`](https://github.com/microsoft/DefinitelyTyped-tools/tree/main/packages/dts-gen) to generate `.d.ts` files for your untyped files. [This SO answer](https://stackoverflow.com/questions/12687779/how-do-you-produce-a-d-ts-typings-definition-file-from-an-existing-javascript) has more on the topic. - use `declare` keyword for ambient declarations - see [declaration merging](https://github.com/typescript-cheatsheets/react#troubleshooting-handbook-bugs-in-official-typings) to patch library declarations inline Misc tips/approaches successful companies have taken From 16ea7aaebcdc3b35373e7a4ebb9c9742e97ade90 Mon Sep 17 00:00:00 2001 From: Huynh Duc Duy Date: Thu, 22 May 2025 17:24:51 +0700 Subject: [PATCH 3/3] `InputEvent` in forms-and-events.md (#781) --- README.md | 14 +------------- docs/basic/getting-started/forms-and-events.md | 14 +------------- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index f5219bf8..e1f23eab 100644 --- a/README.md +++ b/README.md @@ -1432,6 +1432,7 @@ Of course, if you're making any sort of significant form, [you should use Formik | FormEvent | Event that occurs whenever a form or form element gets/loses focus, a form element value is changed or the form is submitted. | | InvalidEvent | Fired when validity restrictions of an input fails (e.g `` and someone would insert number 20). | | KeyboardEvent | User interaction with the keyboard. Each event describes a single key interaction. | +| InputEvent | Event that occurs before the value of ``, `