Skip to content

Commit 5dc6f7d

Browse files
committed
Decline Nullish type
Closes #318
1 parent 0e26d18 commit 5dc6f7d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ Click the type names for complete docs.
134134
- [`Integer`](source/numeric-range.d.ts) - A `number` that is an integer.
135135
- [`Negative`](source/numeric-range.d.ts) - A negative `number`/`bigint` (`-∞ < x < 0`)
136136
- [`NonNegative`](source/numeric-range.d.ts) - A non-negative `number`/`bigint` (`0 <= x < ∞`).
137-
- [`NegativeInteger](source/numeric-range.d.ts) - A negative (`-∞ < x < 0`) `number` that is an integer.
138-
- [`NonNegativeInteger](source/numeric-range.d.ts) - A non-negative (`0 <= x < ∞`) `number` that is an integer.
137+
- [`NegativeInteger`](source/numeric-range.d.ts) - A negative (`-∞ < x < 0`) `number` that is an integer.
138+
- [`NonNegativeInteger`](source/numeric-range.d.ts) - A non-negative (`0 <= x < ∞`) `number` that is an integer.
139139

140140
### Template literal types
141141

@@ -174,6 +174,7 @@ Click the type names for complete docs.
174174
- [`Dictionary`](https://github.com/sindresorhus/type-fest/issues/33) - You only save a few characters (`Dictionary<number>` vs `Record<string, number>`) from [`Record`](https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type), which is more flexible and well-known. Also, you shouldn't use an object as a dictionary. We have `Map` in JavaScript now.
175175
- [`ExtractProperties` and `ExtractMethods`](https://github.com/sindresorhus/type-fest/pull/4) - The types violate the single responsibility principle. Instead, refine your types into more granular type hierarchies.
176176
- [`Url2Json`](https://github.com/sindresorhus/type-fest/pull/262) - Inferring search parameters from a URL string is a cute idea, but not very useful in practice, since search parameters are usually dynamic and defined separately.
177+
- [`Nullish`](https://github.com/sindresorhus/type-fest/pull/318) - The type only saves a couple of characters, not everyone knows what “nullish” means, and I'm also trying to [get away from `null`](https://github.com/sindresorhus/meta/discussions/7).
177178

178179
## Alternative type names
179180

0 commit comments

Comments
 (0)