diff --git a/docs/src/demos/Examples/Savvy/findColors.ts b/docs/src/demos/Examples/Savvy/findColors.ts index a3cd5e44..b4a196f4 100644 --- a/docs/src/demos/Examples/Savvy/findColors.ts +++ b/docs/src/demos/Examples/Savvy/findColors.ts @@ -1,6 +1,7 @@ import { Decoration, DecorationSet } from 'prosemirror-view' +import { Node } from 'prosemirror-model' -export default function (doc: any) { +export default function (doc: Node) { const hexColor = /(#[0-9a-f]{3,6})\b/ig const results: any[] = [] const decorations: [any?] = []