Skip to content

getDeprecatedReason

const getDeprecatedReason: (schema) => Option.Option<string>

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

Checks if a schema has a deprecation annotation.

Schema.Top

The schema to check

Option.Option<string>

The deprecation reason if deprecated, None otherwise