From aab81ac739735438b15a71e6210a72283cce8c5d Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Fri, 5 Feb 2021 22:43:32 +0100 Subject: [PATCH] minor refactoring --- docs/src/demos/Examples/Savvy/findColors.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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?] = []