File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Opinionated collection of common JavaScript / TypeScript utils by [@antfu](https
66
77- Tree-shakable ESM
88- Fully typed - with TSDocs
9- - Type utilities - ` Thenable <T>` ` Arrayable <T>` etc
9+ - Type utilities - ` Arrayable <T>` , ` ElementOf <T>` , etc.
1010
1111> This package is designed to be used as ` devDependencies ` and bundled into your dist.
1212
Original file line number Diff line number Diff line change 11/**
22 * Promise, or maybe not
33 */
4- export type Thenable < T > = T | Promise < T >
4+ export type Awaitable < T > = T | PromiseLike < T >
55
66/**
77 * Null or underfind whatever
88 */
9- export type Nullable < T > = T | null | undefined | void
9+ export type Nullable < T > = T | null | undefined
1010
1111/**
1212 * Array, or not yet
You can’t perform that action at this time.
0 commit comments