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
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ A collection of readonly TypeScript types inspired by TypeScript's built-in read
11
11
12
12
The types here are all fully `Immutable` following [is-immutable-type#definitions](https://github.com/RebeccaStevens/is-immutable-type#definitions).
13
13
14
+
This package assumes you have TypeScript's [strict mode](https://www.typescriptlang.org/tsconfig#strict) and [noUncheckedIndexedAccess](https://www.typescriptlang.org/tsconfig#noUncheckedIndexedAccess) option turned on. [eslint-plugin-total-functions](https://github.com/danielnixon/eslint-plugin-total-functions/) provides an ESLint rule to ensure they're both on.
15
+
14
16
## Installation
15
17
16
18
```sh
@@ -212,7 +214,7 @@ const result = foo.reduce((p) => p);
212
214
|`PrincipledArray`| ❌ | ❌ | ❌ | ✅ | ❌ |
213
215
|`PrincipledNonEmptyArray`| ❌ | ❌ | ❌ | ✅ | ✅ |
214
216
215
-
Assignments marked ⚠️ can lead to surprising mutation in whichever side of the assignment has "less" immutability. https://github.com/danielnixon/eslint-plugin-total-functions includes an ESLint rule to flag these unsafe assignments.
217
+
Assignments marked ⚠️ can lead to surprising mutation in whichever side of the assignment has "less" immutability. [eslint-plugin-total-functions](https://github.com/danielnixon/eslint-plugin-total-functions/) includes an ESLint rule to flag these unsafe assignments.
0 commit comments