Skip to main content

TextInsertOp Interface

An insert op in a character-level delta — characters newly added to the text.

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

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

Sealed

This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.

Signature

/** @sealed */
interface TextInsertOp

Remarks

Carries the inserted text as a single string, which is more convenient for consumers than individual characters.

Properties

PropertyAlertsModifiersTypeDescription
textAlphareadonlystringThe newly inserted characters, concatenated into a single string.
typeAlphareadonly"insert"Discriminator identifying this op as an insert.

Property Details

text

The newly inserted characters, concatenated into a single string.

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 text: string;

Type: string

type

Discriminator identifying this op as an insert.

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 type: "insert";

Type: "insert"