# applyEditorTransactions

Source: /tuil/docs/reference/packages/editor/api/apply-editor-transactions
Locale: en

function exported by @mwillbanks/tuil-editor.



{/* Generated by tooling/docs/generate-reference.ts. */}

## function [#function]

Public function exported by `@mwillbanks/tuil-editor`.

```ts
export function applyEditorTransactions(
  session: EditorSession,
  transactions: readonly EditorTransaction[],
): EditorSnapshot;
```

## Members [#members]

This declaration has no public members.

## Parameters [#parameters]

| Member         | Type                           | Required | Description                                                          | Related types                                                                 |
| -------------- | ------------------------------ | -------- | -------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| `session`      | `EditorSession`                | Yes      | Supplies the `session` value as `EditorSession`.                     | [`EditorSession`](/tuil/docs/reference/packages/editor/api/editor-session)         |
| `transactions` | `readonly EditorTransaction[]` | Yes      | Supplies the `transactions` value as `readonly EditorTransaction[]`. | [`EditorTransaction`](/tuil/docs/reference/packages/editor/api/editor-transaction) |

## Returns [#returns]

`EditorSnapshot` — Returns a value that satisfies `EditorSnapshot`.

Related types: [`EditorSnapshot`](/tuil/docs/reference/packages/editor/api/editor-snapshot)

## Throws [#throws]

No thrown errors are documented for this declaration.

## Related types [#related-types]

* [`EditorSession`](/tuil/docs/reference/packages/editor/api/editor-session)
* [`EditorSnapshot`](/tuil/docs/reference/packages/editor/api/editor-snapshot)
* [`EditorTransaction`](/tuil/docs/reference/packages/editor/api/editor-transaction)

## Source [#source]

[View the secondary source reference](https://github.com/mwillbanks/tuil/blob/main/packages/editor/src/testing.ts)

## Package [#package]

[@mwillbanks/tuil-editor](/tuil/docs/reference/packages/editor)
