UNPKG

@lexical/react

Version:

This package provides Lexical components and hooks for React applications.

11 lines (10 loc) • 412 B
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import type { LexicalEditor } from 'lexical'; import { type HistoryState } from '@lexical/history'; export declare function useHistory(editor: LexicalEditor, externalHistoryState?: HistoryState, delay?: number): void;