@tsed/common
Version:
A TypeScript Framework on top of Express
45 lines • 852 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Any = void 0;
const schema_1 = require("@tsed/schema");
/**
* Set the type of the array items.
*
* ::: warning
* For v6 user, use @@Any@@ from @tsed/schema instead of @tsed/common.
* :::
*
* ## Example
*
* ```typescript
* class Model {
* @Any()
* property: any;
* }
* ```
*
* Will produce:
*
* ```json
* {
* "type": "object",
* "properties": {
* "property": {
* "type": ["integer", "number", "string", "boolean", "array", "object", "null"]
* }
* }
* }
* ```
*
* @decorator
* @validation
* @swagger
* @schema
* @ignore
* @deprecated Since v6. Use @Any decorator from @tsed/schema instead of.
*/
function Any(...types) {
return schema_1.Any(...types);
}
exports.Any = Any;
//# sourceMappingURL=any.js.map