UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

12 lines (11 loc) 418 B
import { Path } from '../../types'; import { SnapshotName } from './Snapshot'; export type SnapshotMap = React.MutableRefObject<Map<Path, unknown>>; export type SnapshotContextState = { name: SnapshotName; setMountedField: (path: Path, { isMounted }: { isMounted: boolean; }) => void; }; declare const SnapshotContext: import("react").Context<SnapshotContextState>; export default SnapshotContext;