From 7bb1d345f483764bd50ddf42aea1065024441a24 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Fri, 27 Aug 2021 17:35:08 -0400 Subject: [PATCH] Fix type --- packages/devui/src/Editor/Editor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/devui/src/Editor/Editor.tsx b/packages/devui/src/Editor/Editor.tsx index eadc1b2e..5ea7af44 100644 --- a/packages/devui/src/Editor/Editor.tsx +++ b/packages/devui/src/Editor/Editor.tsx @@ -1,7 +1,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; -import CodeMirror from 'codemirror'; +import CodeMirror, { EditorChange } from 'codemirror'; import { Base16Theme } from 'base16'; import { defaultStyle, themedStyle } from './styles'; import { Theme } from '../themes/default'; @@ -23,7 +23,7 @@ export interface EditorProps { theme?: Base16Theme; foldGutter: boolean; autofocus: boolean; - onChange?: (value: string, change: CodeMirror.EditorChangeLinkedList) => void; + onChange?: (value: string, change: EditorChange) => void; } /**