• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2025 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15import { utils } from './oh_modules/@arkts.utils';
16
17import { utils as ArkTSUtilsAlias } from './oh_modules/@arkts.utils';
18
19import { utils as kitArkTSUtils } from './oh_modules/@kit.ArkTS';
20
21import { utils as definedArkTSUtils } from 'user_defined_worker'; //legal
22
23export { utils } from './oh_modules/@arkts.utils';
24
25function tesCollectionsUsage() {
26
27  const utils1: string = utils.ASON.stringify(1);
28
29  const utils2 = ArkTSUtilsAlias.ASON.stringify(1);
30
31  const utils3 = kitArkTSUtils.ASON.stringify(1);
32
33  const utils4: string = ArkTSUtilsAlias.ASON.stringify(1);
34
35  type CreatedType = ArkTSUtils.ASON.SomeType;
36
37  const someType: CreatedType = ArkTSUtils.ASON.SomeType;
38
39  const map: number = ArkTSUtils.ASON.ParseReturnType.map;
40}
41