18c339a94Sopenharmony_ci/* 28c339a94Sopenharmony_ci* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. 38c339a94Sopenharmony_ci* Licensed under the Apache License, Version 2.0 (the "License"); 48c339a94Sopenharmony_ci* you may not use this file except in compliance with the License. 58c339a94Sopenharmony_ci* You may obtain a copy of the License at 68c339a94Sopenharmony_ci* 78c339a94Sopenharmony_ci* http://www.apache.org/licenses/LICENSE-2.0 88c339a94Sopenharmony_ci* 98c339a94Sopenharmony_ci* Unless required by applicable law or agreed to in writing, software 108c339a94Sopenharmony_ci* distributed under the License is distributed on an "AS IS" BASIS, 118c339a94Sopenharmony_ci* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 128c339a94Sopenharmony_ci* See the License for the specific language governing permissions and 138c339a94Sopenharmony_ci* limitations under the License. 148c339a94Sopenharmony_ci*/ 158c339a94Sopenharmony_ciimport { AsyncCallback, Callback } from './../basic'; 168c339a94Sopenharmony_ci 178c339a94Sopenharmony_cideclare namespace napitest { 188c339a94Sopenharmony_ci /* 198c339a94Sopenharmony_ci export interface testInerface { 208c339a94Sopenharmony_ci code: number; 218c339a94Sopenharmony_ci data: string; 228c339a94Sopenharmony_ci } 238c339a94Sopenharmony_ci export interface testMapInerface { 248c339a94Sopenharmony_ci tset1: map<string, Array<testInerface>>; -- 待实现 } 258c339a94Sopenharmony_ci 268c339a94Sopenharmony_ci function fun7(v: Array<{[key: string]:testInerface}>): number; -- 待实现 278c339a94Sopenharmony_ci function fun10(v: Array<map<string, testInerface>>): number; -- 待实现 288c339a94Sopenharmony_ci function fun11(v: Array<map<string, testInerface>>): number; -- 待实现 298c339a94Sopenharmony_ci function fun17(v: Array<map<string, Array<testInerface>>>): number; -- 待实现 308c339a94Sopenharmony_ci 318c339a94Sopenharmony_ci --not support-- 328c339a94Sopenharmony_ci function fun4(v: Array<{[key: string]:Object}>): number; -- 参数、返回值暂时不支持 338c339a94Sopenharmony_ci function fun5(v: Array<{[key: string]:[]}>): number; -- ohos中无此类用法,暂不实现 348c339a94Sopenharmony_ci function fun6(v: Array<{[key: string]:any}>): number; -- 依赖于参数、返回值any类型 358c339a94Sopenharmony_ci 368c339a94Sopenharmony_ci function fun13(v: {[key: string]:any}[]): number; --ohos中无此类用法,暂不实现 378c339a94Sopenharmony_ci function fun14(v: {[key: string]:any}[]): number; --ohos中无此类用法,暂不实现 388c339a94Sopenharmony_ci function fun15(v: map<string, string>[]): number; --ohos中无此类用法,暂不实现 398c339a94Sopenharmony_ci function fun15(v: string): map<string, string>[]; --ohos中返回值类型为 map数组,无此类用法,暂不实现 408c339a94Sopenharmony_ci */ 418c339a94Sopenharmony_ci 428c339a94Sopenharmony_ci function fun1(v: Array<{[key: string]:string}>): number; 438c339a94Sopenharmony_ci function fun2(v: Array<{[key: string]:number}>): number; 448c339a94Sopenharmony_ci function fun3(v: Array<{[key: string]:boolean}>): number; 458c339a94Sopenharmony_ci 468c339a94Sopenharmony_ci function fun8(v: Array<Map<string, string>>): number; 478c339a94Sopenharmony_ci function fun9(v: Array<Map<string, number>>): number; 488c339a94Sopenharmony_ci function fun10(v: Array<Map<string, boolean>>): number; 498c339a94Sopenharmony_ci} 508c339a94Sopenharmony_ci 518c339a94Sopenharmony_ciexport default napitest;