Skip to content

findDeprecatedFieldsWithValues

const findDeprecatedFieldsWithValues: (schema, args) => object[]

Defined in: packages/@livestore/common/dist/schema/EventDef/deprecated.d.ts:82

Finds deprecated fields with values in the given event arguments. This walks through a Struct schema and checks each property for deprecation.

Schema.Schema.All

The event schema (expected to be a Struct)

Record<string, unknown>

The event arguments

object[]

Array of objects containing field name and deprecation reason