Skip to main content

PropertyDef Class

A property definition class that describes the structure of the property

This API is provided as an alpha preview and may change without notice.

To use, import via @fluidframework/tree-agent/alpha.

For more information about our API support guarantees, see here.

Signature

export declare class PropertyDef

Constructors

ConstructorAlertsDescription
(constructor)(name, description, schema, readOnly)AlphaConstructs a new instance of the PropertyDef class

Properties

PropertyAlertsModifiersTypeDescription
descriptionAlphareadonlystring | undefinedOptional description of the property.
nameAlphareadonlystringThe name of the property.
readOnlyAlphareadonlybooleanWhether the property is readonly.
schemaAlphareadonlyTypeFactoryTypeThe schema defining the property's type.

Constructor Details

(constructor)

Constructs a new instance of the PropertyDef class

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

constructor(
name: string,
description: string | undefined,
schema: TypeFactoryType,
readOnly: boolean);

Parameters

ParameterTypeDescription
namestring
descriptionstring | undefined
schemaTypeFactoryType
readOnlyboolean

Property Details

description

Optional description of the property.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

readonly description: string | undefined;

Type: string | undefined

name

The name of the property.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

readonly name: string;

Type: string

readOnly

Whether the property is readonly.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

readonly readOnly: boolean;

Type: boolean

schema

The schema defining the property's type.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

readonly schema: TypeFactoryType;

Type: TypeFactoryType