From 3960b0f3d19974425a98eccfb2d7f7a1b180e4b6 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 27 Oct 2022 15:52:26 +0400 Subject: [PATCH] Move cash to TS --- src/editor/index.ts | 2 +- src/utils/{cash-dom.js => cash-dom.ts} | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) rename src/utils/{cash-dom.js => cash-dom.ts} (99%) diff --git a/src/editor/index.ts b/src/editor/index.ts index 7c980d9b5..4234bce4a 100644 --- a/src/editor/index.ts +++ b/src/editor/index.ts @@ -87,7 +87,7 @@ export default class EditorModule implements IBaseModule { } editorView?: EditorView; editor: EditorModel; - $: cash; + $: typeof cash; em: EditorModel; config: typeof defaults; diff --git a/src/utils/cash-dom.js b/src/utils/cash-dom.ts similarity index 99% rename from src/utils/cash-dom.js rename to src/utils/cash-dom.ts index 457389811..1946c97dd 100644 --- a/src/utils/cash-dom.js +++ b/src/utils/cash-dom.ts @@ -1,3 +1,4 @@ +// @ts-nocheck /* Adapted for headless */ /* MIT https://github.com/kenwheeler/cash */ 'use strict';