DefaultsInput<D>Input bag for defaults / Tag { defaults } — sync values only (Promise-returning
fns are a type error).
modelsdefaults
Source src/Hyperlink.ts:7743 lines
export type type DefaultsInput<
D extends DefaultsBag
> = { readonly [K in keyof D]: SyncDefault<D[K]> }
Input bag for
defaults
/ Tag { defaults } — sync values only (Promise-returning
fns are a type error).
DefaultsInput<function (type parameter) D in type DefaultsInput<D extends DefaultsBag>D extends type DefaultsBag = {
readonly [key: string]: unknown
}
A bag of Tag-baked defaults for
defaults
.
DefaultsBag> = {
readonly [function (type parameter) KK in keyof function (type parameter) D in type DefaultsInput<D extends DefaultsBag>D]: type SyncDefault<V> = [V] extends [
(...args: never) => Promise<unknown>
]
? never
: V
Reject Promise-returning functions in a defaults bag value (same rule as
default
).
SyncDefault<function (type parameter) D in type DefaultsInput<D extends DefaultsBag>D[function (type parameter) KK]>;
};
Referenced by 3 symbols