Files
klz-cables.com/.pnpm-store/v10/files/7a/c18734f55df641fce1a78a0fcfc3ef108df50ec8c0fe38e14755c52c0b8c1651478241f0a2580d2228c3518f5b5d5ee8c0d0b407ea3527984e8482d37b89d7
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

27 lines
753 B
Plaintext

/**
* 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.
*
* @flow strict
*/
import type {EditorState, BaseSelection, LexicalEditor} from 'lexical';
export type HistoryStateEntry = {
editor: LexicalEditor,
editorState: EditorState,
undoSelection?: BaseSelection | null,
};
export type HistoryState = {
current: null | HistoryStateEntry,
redoStack: Array<HistoryStateEntry>,
undoStack: Array<HistoryStateEntry>,
};
declare export function registerHistory(
editor: LexicalEditor,
historyState: HistoryState,
delay: number,
): () => void;
declare export function createEmptyHistoryState(): HistoryState;