types.d.ts 220 B

123456
  1. export declare type Fork = {
  2. use<T>(plugin: Plugin<T>): T;
  3. };
  4. export declare type Plugin<T> = (fork: Fork) => T;
  5. export declare type Def = Plugin<void>;
  6. export declare type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;