[]
Manages operational transformation (OT) types for collaboration, enabling registration and retrieval by URI.
• new TypesManager()
▸ Static getType<S, T>(typeUri): OT_Type<S, T>
Retrieves an OT type by its URI.
| Name | Description |
|---|---|
S |
The type of snapshot data. |
T |
The type of operation data. |
| Name | Type | Description |
|---|---|---|
typeUri |
string |
The URI of the type to retrieve. |
OT_Type<S, T>
The OT type associated with the specified URI.
▸ Static register<S, T>(type): void
Registers a custom OT type.
| Name | Description |
|---|---|
S |
The type of snapshot data. |
T |
The type of operation data. |
| Name | Type | Description |
|---|---|---|
type |
OT_Type<S, T> |
The user-defined OT type to register. |
void