getDeprecatedReason
constgetDeprecatedReason: <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.
Type Parameters
Section titled “Type Parameters”A
I
R
Parameters
Section titled “Parameters”schema
Section titled “schema”Schema.Schema<A, I, R>
The schema to check
Returns
Section titled “Returns”Option.Option<string>
The deprecation reason if deprecated, None otherwise