1 |
|
2 |
|
3 |
|
4 | export type Primitive = null | undefined | string | number | boolean | symbol | bigint;
|
5 |
|
6 |
|
7 |
|
8 | type Constructor<T, Arguments extends unknown[] = any[]> = new (...arguments_: Arguments) => T;
|
9 |
|
10 |
|
11 |
|
12 | export type Class<T, Arguments extends unknown[] = any[]> = Constructor<T, Arguments> & {
|
13 | prototype: T;
|
14 | };
|
15 |
|
16 |
|
17 |
|
18 | export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
|
19 | declare global {
|
20 | interface SymbolConstructor {
|
21 | readonly observable: symbol;
|
22 | }
|
23 | }
|
24 |
|
25 |
|
26 |
|
27 | export type ObservableLike = {
|
28 | subscribe(observer: (value: unknown) => void): void;
|
29 | [Symbol.observable](): ObservableLike;
|
30 | };
|
31 | export type Falsy = false | 0 | 0n | '' | null | undefined;
|
32 | export type WeakRef<T extends object> = {
|
33 | readonly [Symbol.toStringTag]: 'WeakRef';
|
34 | deref(): T | undefined;
|
35 | };
|
36 | export type ArrayLike<T> = {
|
37 | readonly [index: number]: T;
|
38 | readonly length: number;
|
39 | };
|
40 | export type NodeStream = {
|
41 | pipe<T extends NodeJS.WritableStream>(destination: T, options?: {
|
42 | end?: boolean;
|
43 | }): T;
|
44 | } & NodeJS.EventEmitter;
|
45 | export type Predicate = (value: unknown) => boolean;
|
46 | export type NonEmptyString = string & {
|
47 | 0: string;
|
48 | };
|
49 | export type Whitespace = ' ';
|
50 | export {};
|