This commit is contained in:
24
node_modules/slate-react/dist/hooks/use-slate.d.ts
generated
vendored
Normal file
24
node_modules/slate-react/dist/hooks/use-slate.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/// <reference types="react" />
|
||||
import { Editor } from 'slate';
|
||||
import { ReactEditor } from '../plugin/react-editor';
|
||||
/**
|
||||
* A React context for sharing the editor object, in a way that re-renders the
|
||||
* context whenever changes occur.
|
||||
*/
|
||||
export interface SlateContextValue {
|
||||
v: number;
|
||||
editor: ReactEditor;
|
||||
}
|
||||
export declare const SlateContext: import("react").Context<{
|
||||
v: number;
|
||||
editor: ReactEditor;
|
||||
} | null>;
|
||||
/**
|
||||
* Get the current editor object from the React context.
|
||||
*/
|
||||
export declare const useSlate: () => Editor;
|
||||
export declare const useSlateWithV: () => {
|
||||
v: number;
|
||||
editor: ReactEditor;
|
||||
};
|
||||
//# sourceMappingURL=use-slate.d.ts.map
|
||||
Reference in New Issue
Block a user