Skip to content

Commit

Permalink
Export Delta, AttributeMap and other related objects (#4220)
Browse files Browse the repository at this point in the history
Co-authored-by: Zihua Li <[email protected]>
  • Loading branch information
luin and luin committed May 23, 2024
1 parent c7c9eb8 commit 531a1ee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 10 additions & 3 deletions packages/quill/src/quill.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Quill, { Parchment, Range } from './core.js';
import Quill from './core.js';
import type {
Bounds,
DebugLevel,
Expand Down Expand Up @@ -115,14 +115,21 @@ Quill.register(
true,
);

export { Module } from './core.js';
export {
AttributeMap,
Delta,
Module,
Op,
OpIterator,
Parchment,
Range,
} from './core.js';
export type {
Bounds,
DebugLevel,
EmitterSource,
ExpandedQuillOptions,
QuillOptions,
};
export { Parchment, Range };

export default Quill;
3 changes: 1 addition & 2 deletions packages/quill/test/types/quill.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { assertType, expectTypeOf } from 'vitest';
import Quill from '../../src/quill.js';
import Quill, { Delta } from '../../src/quill.js';
import type { EmitterSource, Parchment, Range } from '../../src/quill.js';
import Delta from 'quill-delta';
import type { default as Block, BlockEmbed } from '../../src/blots/block.js';
import SnowTheme from '../../src/themes/snow.js';
import { LeafBlot } from 'parchment';
Expand Down

0 comments on commit 531a1ee

Please sign in to comment.