Skip to content

getDeprecatedReason

const getDeprecatedReason: <A, I, R>(schema) => Option.Option<string>

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

Checks if a schema has a deprecation annotation.

A

I

R

Schema.Schema<A, I, R>

The schema to check

Option.Option<string>

The deprecation reason if deprecated, None otherwise