import { Editor } from 'slate'; type ExtractEditorMethodOptions = NonNullable< Parameters[I] >; export type EditorAboveOptions = ExtractEditorMethodOptions<'above', 1>; export type EditorBeforeOptions = ExtractEditorMethodOptions<'before', 2>; export type EditorNodesOptions = ExtractEditorMethodOptions<'nodes', 1>; export type EditorParentOptions = ExtractEditorMethodOptions<'parent', 2>; export type EditorUnhangRangeOptions = ExtractEditorMethodOptions<'unhangRange', 2>;