Skip to main content
Version: 0.1.0-beta.9

Type Alias: PropertyType

PropertyType = TypeIdentifier | ContainerType | InlineObjectType

Defined in: schema/types/PropertyMetadata.ts:144

Represents a type that can be used in property metadata. This is the main type used for defining property types in schemas. Can represent any valid type in the schema system.

Example

// Primitive type
const strType: PropertyType = 'string';

// Class constructor
const userType: PropertyType = User;

// Interface type
const profileType: PropertyType = { interface: 'UserProfile' };

// Container type (array)
const arrayType: PropertyType = { container: 'array', itemType: 'string' };