source: node_modules/ts-toolbelt/out/Union/Strict.d.ts

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 587 bytes
Line 
1import { ComputeRaw } from '../Any/Compute';
2import { Keys } from '../Any/Keys';
3import { OptionalFlat } from '../Object/Optional';
4import { Record } from '../Object/Record';
5/**
6 * @hidden
7 */
8declare type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<Record<Exclude<Keys<_U>, keyof U>, never>> : never;
9/**
10 * Make a [[Union]] not allow excess properties (https://github.com/Microsoft/TypeScript/issues/20863)
11 * @param U to make strict
12 * @returns [[Union]]
13 * @example
14 * ```ts
15 * ```
16 */
17export declare type Strict<U extends object> = ComputeRaw<_Strict<U>>;
18export {};
Note: See TracBrowser for help on using the repository browser.