You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -526,7 +526,7 @@ When a type assertion is used with a clear rationale, we should document the rea
526
526
527
527
### EscapeHatches
528
528
529
-
TypeScriptprovidesseveralescapehatchesthatdisablecompilertypechecks altogether and suppress compiler errors. Using these to ignore typing issues is dangerous and reduces the effectiveness of TypeScript. The following are presented in order of preference for usage.
529
+
TypeScriptprovidesseveralescapehatchesthatdisablecompilertypechecks altogether and suppress compiler errors. Using these to ignore typing issues is dangerous and reduces the effectiveness of TypeScript.
@@ -549,7 +549,7 @@ TypeScript provides several escape hatches that disable compiler type checks alt
549
549
-Doesnotpropagatetoinstancesofthetargetvariableortypethat are outside of its scope.
550
550
- Banned by the `@typescript-eslint/ban-ts-comment` rule.
551
551
552
-
-`any`:
552
+
-`any`
553
553
-Appliestoallinstancesofthetargetvariableortypethroughout the entire codebase, and in downstream code as well.
554
554
- Has the same effect as applying `@ts-ignore` to every single instance of the target variable or type.
555
555
- Banned by the `@typescript-eslint/no-explicit-any` rule.
@@ -634,7 +634,7 @@ This recommendation applies to any disruptive change that creates many errors at
634
634
635
635
See [thisentry](https://github.com/MetaMask/core/blob/main/docs/package-migration-process-guide.md#4-resolve-or-todo-downstream-errors) in the core repo "package migration process guide," which recommends that complex or blocked errors should be annotated with a `// @ts-expect-error TODO:` comment, and then revisited once the disruptive change has been completed.
0 commit comments