UNPKG

@sleekify/sleekify

Version:

A TypeScript decorator driven approach for developing web applications.

11 lines (10 loc) 555 B
import { type SchemaObject } from '../types/types'; /** * You may apply this decorator to your resource class or the resource class's * methods to provide the default schema object for requests and responses. If * this is present on both the class and a class method, then the decorator on * the method will have higher precedence. * * @param schemaObject The optional OpenAPI schema object definition */ export declare function Schema(schemaObject?: SchemaObject): (target: object, propertyKey?: string, _descriptor?: PropertyDescriptor) => any;