UNPKG
fantasy-editor
Version:
latest (0.1.3)
0.1.3
0.1.2
0.1.1
0.1.0
A React Rich Text Editor Based On Slate
fantasy-editor.jieee.dev
lingjieee/fantasy-editor
fantasy-editor
/
lib
/
utils
/
decorate-plugins.d.ts
4 lines
(3 loc)
•
269 B
TypeScript
View Raw
1
2
3
4
import
{
Editor
,
NodeEntry
,
Range
}
from
'slate'
;
import
{
Decorate
,
SlatePlugin
}
from
'../core/types'
;
export
declare
const
decoratePlugins
:
(
editor
:
Editor
,
plugins
:
SlatePlugin
[],
decorateList
:
Decorate
[]
) =>
(
entry
:
NodeEntry
<
import
(
"slate"
).
Node
>
) =>
Range
[];