Skip to main content

Statics Interface

Statics for text nodes.

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

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

Signature

interface Statics

Methods

MethodAlertsReturn TypeDescription
fromString(value)AlphaTreeConstruct a Tree from a string, where each character (as defined by iterating over the string) becomes a single character in the text node. This combines pairs of utf-16 surrogate code units into single characters as appropriate.

Method Details

fromString

Construct a Tree from a string, where each character (as defined by iterating over the string) becomes a single character in the text node. This combines pairs of utf-16 surrogate code units into single characters as appropriate.

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

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

Signature

fromString(value: string): Tree;

Parameters

ParameterTypeDescription
valuestring

Returns

Return type: Tree