/** * type that errors if `T` is not `true`. the return type is irrelevant and should not be used. * * @remarks * used for testing types: use relations like `Equals`, `MutuallyAssignable` with boolean operators like `Not` * to assert that some relation holds between a tested type and the expected result. * * @since 0.0.2 * * @example * ```ts * // this code passes the type checker! * type Tests = [ * // should pass on true * Expect, * * // should error on false * // @ts-expect-error // vscode intellisense doesn't seem to handle `// @ts-expect-error` in the doc comments very well... * Expect, * ] * ``` */ export type Expect = [ T ] extends [never] ? Expect : unknown extends T ? Expect : never; //# sourceMappingURL=expect.d.ts.map