The str class represents a "str" JSON CRDT node. As the generic type parameter, it takes the type of the raw value.
str
Example:
s.str('');s.str('hello');s.str<string>('world');s.str<'' | 'hello' | 'world'>('hello'); Copy
s.str('');s.str('hello');s.str<string>('world');s.str<'' | 'hello' | 'world'>('hello');
Optional
Readonly
Returns a string representation of an object.
The
strclass represents a "str" JSON CRDT node. As the generic type parameter, it takes the type of the raw value.Example: