Skip to content

egon-orm-workspace / egon-orm / AppliedData

Type Alias: AppliedData<S> ​

ts
type AppliedData<S> = S extends SchemalessTarget<infer F, infer D> ? Simplify<Omit<D, keyof F> & { -readonly [K in keyof F]: RowOf<F>[K] | (K extends keyof D ? never : MissingValue<F[K]>) }> : S extends AnySchema ? Row<S> : never;

Defined in: core/src/changeset/types.ts:155

What applyChanges() returns: a row for a schema class; for a changeset without one, the data object with every field. A field the data lacks takes its default, or null when nullable; only a field with neither may be undefined.

Type Parameters ​

S ​

S

Example ​

ts
type Applied = AppliedData<typeof User>; // User