UNPKG

@smithy/types

Version:
15 lines (14 loc) • 190 B
/** * Checks that A and B extend each other. * * @internal */ export type Exact<A, B> = [ A ] extends [ B ] ? ([ B ] extends [ A ] ? true : false) : false;