UNPKG

1.11 kBTypeScriptView Raw
1/**
2Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive).
3*/
4export declare type Primitive = null | undefined | string | number | boolean | symbol | bigint;
5/**
6Matches a [`class` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes).
7*/
8export declare type Class<T = unknown, Arguments extends any[] = any[]> = new (...arguments_: Arguments) => T;
9/**
10Matches any [typed array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray), like `Uint8Array` or `Float64Array`.
11*/
12export declare type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
13declare global {
14 interface SymbolConstructor {
15 readonly observable: symbol;
16 }
17}
18/**
19Matches a value that is like an [Observable](https://github.com/tc39/proposal-observable).
20*/
21export interface ObservableLike {
22 subscribe(observer: (value: unknown) => void): void;
23 [Symbol.observable](): ObservableLike;
24}