From 2d9aa5a834f5cc3eebba9bbcebffac79291d7464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Fri, 6 Nov 2020 18:17:32 +0100 Subject: [PATCH] refactoring --- packages/core/index.ts | 5 +---- packages/core/src/types.ts | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/core/index.ts b/packages/core/index.ts index 6661c9bc1..86797ce9a 100644 --- a/packages/core/index.ts +++ b/packages/core/index.ts @@ -1,7 +1,4 @@ -import { Editor, Command, CommandsSpec } from './src/Editor' - -export default Editor -export { Editor, Command, CommandsSpec } +export { Editor, Command, CommandsSpec } from './src/Editor' export * from './src/Extension' export * from './src/NodeExtension' diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index e0f09679e..ff8fcea25 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -3,7 +3,7 @@ import { Decoration, NodeView } from 'prosemirror-view' import { Extension } from './Extension' import { NodeExtension } from './NodeExtension' import { MarkExtension } from './MarkExtension' -import Editor from '..' +import { Editor } from './Editor' export type Extensions = (Extension | NodeExtension | MarkExtension)[]