Skip to content

[F] $deprecated

function $deprecated(
context,
target,
message): void

Mark a type as deprecated

Parameters

ParameterTypeDescription
contextDecoratorContextDecoratorContext
targetTypeDecorator target
messagestringDeprecation target.

Returns

void

Example

model Foo {}