UNPKG

@metamask/keyring-utils

Version:
20 lines 622 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.expectTrue = expectTrue; /** * Assert that a type extends `true`. It can be used, for example, to assert * that a given type extends another type. * * @example * ```ts * expectTrue<Extends<{a: string, b: string}, {a: string}>>(); // Ok * expectTrue<Extends<{a: string}, {a: string, b: string}>>(); // Error * ``` * * This function follows the naming pattern used on `tsd`. */ // eslint-disable-next-line @typescript-eslint/no-unused-vars function expectTrue() { // Intentionally empty } //# sourceMappingURL=typing.cjs.map