1 | export type Present = {} | void;
|
2 | export type Option<T> = T | null;
|
3 | export type Maybe<T> = Option<T> | undefined | void;
|
4 | export type FIXME<T, S extends string> = T;
|
5 |
|
6 | export interface Dict<T = unknown> {
|
7 | [key: string]: T;
|
8 | }
|
9 |
|
10 | export type DictValue<D extends Dict> = D extends Dict<infer V> ? V : never;
|
11 |
|
12 | export interface Unique<T> {
|
13 | 'Unique [id=ada0f31f-27f7-4ab0-bc03-0005387c9d5f]': T;
|
14 | }
|
15 |
|
16 | export type Recast<T, U> = (T & U) | U;
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | export type RichIteratorResult<Tick, Return> =
|
24 | | {
|
25 | done: false;
|
26 | value: Tick;
|
27 | }
|
28 | | {
|
29 | done: true;
|
30 | value: Return;
|
31 | };
|
32 |
|
33 | export type Destroyable = object;
|
34 | export type Destructor<T extends Destroyable> = (destroyable: T) => void;
|