chore: remove old custom types

This commit is contained in:
Eric Maciel 2022-03-07 16:18:09 -05:00
parent d2d2a85efc
commit 3a397dd994

View File

@ -1,27 +0,0 @@
// This example is for an Editor with `ReactEditor` and `HistoryEditor`
import { BaseEditor, BaseRange } from 'slate'
import { HistoryEditor } from 'slate-history'
export type CustomEditor = BaseEditor & HistoryEditor
export type CustomElement = {
type?: string
children: CustomText[]
}
export type CustomRange = {
isCaret?: boolean
} & BaseRange
export type FormattedText = { text: string; bold?: boolean }
export type CustomText = FormattedText
declare module 'slate' {
interface CustomTypes {
Editor: CustomEditor
Element: CustomElement
Text: CustomText
Range: CustomRange
}
}