util.d.ts 388 B

12345678
  1. export declare type Writable<T> = {
  2. -readonly [P in keyof T]: T[P];
  3. };
  4. export declare type WritableArray<T> = T extends readonly any[] ? Writable<T> : T;
  5. export declare type IfNever<T, Y = true, N = false> = [T] extends [never] ? Y : N;
  6. export declare type IfUnknown<T, Y, N> = [unknown] extends [T] ? Y : N;
  7. export declare type UnknownToNever<T> = IfUnknown<T, never, T>;
  8. export {};