mirror of
https://github.com/penxio/penx.git
synced 2026-05-12 03:03:12 -04:00
23 lines
439 B
TypeScript
23 lines
439 B
TypeScript
import { BaseEditor } from 'slate'
|
|
import { HistoryEditor } from 'slate-history'
|
|
import { ReactEditor } from 'slate-react'
|
|
|
|
export type CustomEditor = BaseEditor &
|
|
ReactEditor &
|
|
HistoryEditor & {
|
|
elementMaps: any
|
|
onKeyDownFns: any
|
|
}
|
|
|
|
declare module 'slate' {
|
|
interface CustomTypes {
|
|
Editor: CustomEditor
|
|
Element: {
|
|
type?: any
|
|
id?: string
|
|
nodeType?: string
|
|
listStyleType?: string
|
|
}
|
|
}
|
|
}
|