JsonEntityFn
@tsed/schema
Usage
typescript
import { JsonEntityFn } from "@tsed/schema";
See /packages/specs/schema/src/types/decorators/common/jsonEntityFn.ts.
Overview
ts
function JsonEntityFn<T extends JsonEntityStore = JsonEntityStore>(fn: (entity: T, parameters: DecoratorParameters) => any): (...args: any[]) => any;
Description
Decorator util to compose another decorator. See Description decorator implementation for more details.
Usage
typescript
export function Description(description: any) {
return JsonEntityFn((entity: JsonEntityStore, args: DecoratorParameters) => {
entity.itemSchema.description(description)
});
}