Skip to main content
Version: v7.0.0

TypeWithDefaults


Import
import { TypeWithDefaults } from "@hyper-fetch/core"

Preview

type TypeWithDefaults<Types,Key,Value,ExcludedTypes> = Key extends keyof Types ? Exclude<Types[Key], ExcludedTypes> extends never ? Value : Exclude<Types[Key], ExcludedTypes> : Value;
On this page