UNPKG

@smithy/types

Version:

[![NPM version](https://img.shields.io/npm/v/@smithy/types/latest.svg)](https://www.npmjs.com/package/@smithy/types) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/types.svg)](https://www.npmjs.com/package/@smithy/types)

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