Interface ISharedFile

Text/Markdown/Code files are represented as ISharedFile


Implemented by


The changed signal.

disposed: ISignal<ISharedFile, void>

A signal emitted when the object is disposed.

isDisposed: boolean

Test whether the object has been disposed.


This property is always safe to access.

source: string


state: JSONObject

Document state

version: string

Document version


  • Dispose of the resources held by the object.


    If the object's dispose method is called more than once, all calls made after the first will be a no-op.

    Undefined Behavior

    It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.

    Returns void

  • Perform a transaction. While the function f is called, all changes to the shared document are bundled into a single event.


    • f: (() => void)

      Transaction to execute

        • (): void
        • Returns void

    • Optional undoable: boolean

      Whether to track the change in the action history or not (default true)

    Returns void

  • Replace content from start' to endwithvalue`.


    • start: number
    • end: number
    • Optional value: string

    Returns void

Generated using TypeDoc