The str class represents a "str" JSON CRDT node. As the generic type parameter, it takes the type of the raw value.

Example:

s.str('');
s.str('hello');
s.str<string>('world');
s.str<'' | 'hello' | 'world'>('hello');

Type Parameters

  • T extends string = string

Hierarchy (view full)

Constructors

Properties

Constructors

Properties

raw: T
type: "str" = 'str'