API reference › @evolu/common › Type › Defaulted
type Defaulted<Value, Default, Original> =
| {
defaultUsed: false;
value: Value;
}
| {
defaultUsed: true;
original: Original;
value: Default;
};
Defined in: packages/common/src/Type.ts:11883
A value decoded by withDefault with the preserve strategy.
defaultUsed distinguishes supplied values from defaults, even when their
values are equal. original records the decoded absence, not the raw input
before other transformations.