/** * Resolve a type to its final form. */ type Compute = { [K in keyof T]: T[K]; } & {}; /** * A utility type that makes a specified set of fields optional in a given type. * @template T - The type to make fields optional in. * @template K - The keys of the fields to make optional. * @example * type MyType = { * a: string * b: number * } * type MyTypeWithOptionalA = OptionalField * // MyTypeWithOptionalA is equivalent to: * type MyTypeWithOptionalA = { * a?: string * b: number * } */ export type OptionalField = Compute & Partial>>; /** * Helper function for exhaustive checks of discriminated unions. */ export declare function assertNever(value: never): never; export type EmptyObject = Record; export {}; //# sourceMappingURL=ts-helpers.d.ts.map