Files
coopgo/node_modules/slate-react/dist/hooks/use-decorate.d.ts
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

11 lines
471 B
TypeScript

/// <reference types="react" />
import { Range, NodeEntry } from 'slate';
/**
* A React context for sharing the `decorate` prop of the editable.
*/
export declare const DecorateContext: import("react").Context<(entry: NodeEntry<import("slate").Node>) => Range[]>;
/**
* Get the current `decorate` prop of the editable.
*/
export declare const useDecorate: () => (entry: NodeEntry<import("slate").Node>) => Range[];
//# sourceMappingURL=use-decorate.d.ts.map