@apollo/client
Version:
A fully-featured caching GraphQL client.
5 lines • 480 B
TypeScript
import type { RemoveIndexSignature } from "./RemoveIndexSignature.js";
type ReplaceUndefinedWithDefault<Value, Default> = Value extends any ? Value extends undefined ? Default : Value : never;
export type OptionWithFallback<Options, DefaultOptions, Key extends keyof DefaultOptions> = Key extends keyof RemoveIndexSignature<Options> ? ReplaceUndefinedWithDefault<Options[Key], DefaultOptions[Key]> : DefaultOptions[Key];
export {};
//# sourceMappingURL=OptionWithFallback.d.ts.map