From 10ee1acfbca9c9477aab2b8d0d06e2b2c076c490 Mon Sep 17 00:00:00 2001 From: Charles Lee Date: Fri, 29 Mar 2019 16:23:41 +0800 Subject: [PATCH] fix: add missing type exports --- packages/zent/src/text-mark/chunk.ts | 4 ++-- packages/zent/src/text-mark/index.ts | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/zent/src/text-mark/chunk.ts b/packages/zent/src/text-mark/chunk.ts index c2c3d93b71..5dbacfb8a0 100644 --- a/packages/zent/src/text-mark/chunk.ts +++ b/packages/zent/src/text-mark/chunk.ts @@ -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 @@ -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[] { diff --git a/packages/zent/src/text-mark/index.ts b/packages/zent/src/text-mark/index.ts index 3e41d6fd39..a09e3b932c 100644 --- a/packages/zent/src/text-mark/index.ts +++ b/packages/zent/src/text-mark/index.ts @@ -1,2 +1,6 @@ -export { TextMarkSanitizeFunction, TextMarkFindChunksFunction } from './chunk'; +export { + TextMarkSanitizeFunction, + TextMarkFindChunksFunction, + TextMarkSearchWords, +} from './chunk'; export * from './TextMark';