# Any Decorator

Module
import { Any } from "@tsed/common"
Source/packages/common/src/jsonschema/decorators/any.ts

# Overview

function Any(...types: JSONSchema6TypeName[]): (...parameters: any[]) => any;

# Description

Set the type of the array items.

# Example

class Model {
   @Any()
   property: any;
}
1
2
3
4

Will produce:

{
  "type": "object",
  "properties": {
    "property": {
      "type": ["integer", "number", "string", "boolean", "array", "object", "null"]
    }
  }
}
1
2
3
4
5
6
7
8