@metamask/keyring-utils
Version:
MetaMask Keyring utils
20 lines • 622 B
JavaScript
;
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