Type Alias ValidateShape<T, Shape>

ValidateShape<T, Shape>: T extends Shape
    ? Exclude<keyof T, keyof Shape> extends never
        ? T
        : never
    : never

Type Parameters

  • T
  • Shape