UNPKG

@typedly/check

Version:

A lightweight TypeScript type definitions library for checking the types.

10 lines (9 loc) 208 B
/** * @description * @export * @template A * @template B */ export type ExactEqual<A, B> = [ A ] extends [B] ? [B] extends [A] ? (A extends B ? (B extends A ? true : false) : false) : false : false;