Skip to content

Commit

Permalink
fix: add missing type exports
Browse files Browse the repository at this point in the history
  • Loading branch information
cpylua committed Mar 29, 2019
1 parent d22ddb9 commit 10ee1ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/zent/src/text-mark/chunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function findAll({
/**
* Takes an array of chunks and combines chunks that overlap into single chunks.
*/
export function combineChunks({
function combineChunks({
chunks,
}: ITextMarkCombineChunksParamters): ITextMarkChunk[] {
chunks = chunks
Expand Down Expand Up @@ -121,7 +121,7 @@ export function combineChunks({
* Given a set of chunks to highlight, create an additional set of chunks
* to represent the bits of text between the highlighted text.
*/
export function fillInChunks({
function fillInChunks({
chunksToHighlight,
totalLength,
}: ITextMarkFillInChunksParameters): ITextMarkChunk[] {
Expand Down
6 changes: 5 additions & 1 deletion packages/zent/src/text-mark/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
export { TextMarkSanitizeFunction, TextMarkFindChunksFunction } from './chunk';
export {
TextMarkSanitizeFunction,
TextMarkFindChunksFunction,
TextMarkSearchWords,
} from './chunk';
export * from './TextMark';

0 comments on commit 10ee1ac

Please sign in to comment.