common-types.ts 164 B

12345
  1. /**
  2. * Creates a type based on T, but with all properties non-optional
  3. * and readonly.
  4. */
  5. export type ReadOnlyRequired<T> = { +readonly [K in keyof T]-?: T[K] };