@prosekit/svelte
Version:
Svelte components and utilities for ProseKit
9 lines (8 loc) • 322 B
TypeScript
import type { ProseMirrorNode } from '@prosekit/pm/model';
import { type UseExtensionOptions } from './use-extension';
/**
* Calls the given handler whenever the editor document changes.
*
* @public
*/
export declare function useDocChange(handler: (doc: ProseMirrorNode) => void, options?: UseExtensionOptions): void;