coze-studio/frontend/packages/common/chat-area/utils/index.ts

48 lines
1.5 KiB
TypeScript

/*
* Copyright 2025 coze-dev Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { performSimpleObjectTypeCheck } from './src/perform-simple-type-check';
export { typeSafeJsonParse, typeSafeJsonParseEnhanced } from './src/json-parse';
export { getReportError } from './src/get-report-error';
export { safeAsyncThrow } from './src/safe-async-throw';
export { updateOnlyDefined } from './src/update-only-defined';
export {
sortInt64CompareFn,
getIsDiffWithinRange,
getInt64AbsDifference,
compareInt64,
getMinMax,
compute,
} from './src/int64';
export { type MakeValueUndefinable } from './src/type-helper';
export { sleep, Deferred } from './src/async';
export { flatMapByKeyList } from './src/collection';
export {
exhaustiveCheckForRecord,
exhaustiveCheckSimple,
} from './src/exhaustive-check';
export { RateLimit } from './src/rate-limit';
export { parseMarkdownHelper } from './src/parse-markdown/parse-markdown-to-text';
export {
type Root,
type Link,
type Image,
type Text,
type RootContent,
type Parent,
} from 'mdast';