Require Node.js 14, TS 4.7, and move to ESM (#167)

This commit is contained in:
Sindre Sorhus 2022-06-11 17:44:01 +07:00
parent c408f5a268
commit d6fc1ce0fe
8 changed files with 341 additions and 316 deletions

View file

@ -4,7 +4,7 @@
Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive).
*/
export type Primitive =
| null
| null // eslint-disable-line @typescript-eslint/ban-types
| undefined
| string
| number
@ -12,7 +12,6 @@ export type Primitive =
| symbol
| bigint;
// TODO: Remove the `= unknown` sometime in the future when most users are on TS 3.5 as it's now the default
/**
Matches a [`class` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes).
*/
@ -48,4 +47,5 @@ export interface ObservableLike {
[Symbol.observable](): ObservableLike;
}
// eslint-disable-next-line @typescript-eslint/ban-types
export type Falsy = false | 0 | 0n | '' | null | undefined;