/** * Omit keys from a union type. * * The normal `Omit` type does not distribute over unions. So we use this * workaround that applies `Omit` to each member of the union. * * See: */ export type OmitUnion = Type extends any ? Omit : never; /** * Type that resolves to `true` if `Child` extends `Base`, otherwise `false`. * * @example * ```ts * type A = Extends<{a: string, b: string}, {a: string}>; // true * type B = Extends<{a: string}, {a: string, b: string}>; // false * ``` */ export type Extends = Child extends Base ? true : false; /** * Assert that a type extends `true`. It can be used, for example, to assert * that a given type extends another type. * * @example * ```ts * expectTrue>(); // Ok * expectTrue>(); // Error * ``` * * This function follows the naming pattern used on `tsd`. */ export declare function expectTrue(): void; //# sourceMappingURL=typing.d.mts.map