UNPKG

expect-type

Version:

[![CI](https://github.com/mmkal/expect-type/actions/workflows/ci.yml/badge.svg)](https://github.com/mmkal/expect-type/actions/workflows/ci.yml) ![npm](https://img.shields.io/npm/dt/expect-type) [![X (formerly Twitter) Follow](https://img.shields.io/twitte

20 lines (19 loc) 540 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @internal */ const secret = Symbol('secret'); /** * @internal */ const mismatch = Symbol('mismatch'); /** * A type which should match anything passed as a value but *doesn't* * match {@linkcode Mismatch}. It helps TypeScript select the right overload * for {@linkcode PositiveExpectTypeOf.toEqualTypeOf | .toEqualTypeOf()} and * {@linkcode PositiveExpectTypeOf.toMatchTypeOf | .toMatchTypeOf()}. * * @internal */ const avalue = Symbol('avalue');