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_cideclare namespace napitest {
168c339a94Sopenharmony_ci    interface Human {
178c339a94Sopenharmony_ci        name: string;
188c339a94Sopenharmony_ci        age: number;
198c339a94Sopenharmony_ci        isTrue: boolean;
208c339a94Sopenharmony_ci    }
218c339a94Sopenharmony_ci
228c339a94Sopenharmony_ci    interface TestClass1 {
238c339a94Sopenharmony_ci        map1 : {[key: string]: {[key: string]: string}} ;
248c339a94Sopenharmony_ci        map2 : Map<string,Human> ;
258c339a94Sopenharmony_ci        //map3: {[key: string]: Object} // to support
268c339a94Sopenharmony_ci        //map3: {[key: string]: object} // to support
278c339a94Sopenharmony_ci    }
288c339a94Sopenharmony_ci
298c339a94Sopenharmony_ci    class TestClass2 {
308c339a94Sopenharmony_ci        fun1(v: {[key: string]: string},v1:string):  number;
318c339a94Sopenharmony_ci        fun2(v: {[key: string]: number}):  number;
328c339a94Sopenharmony_ci        fun3(v: {[key: string]: boolean}):  number;
338c339a94Sopenharmony_ci        fun4(v: {[key: string]: Array<string>}):  number;
348c339a94Sopenharmony_ci        fun5(v: {[key: string]: Array<number>}):  number;
358c339a94Sopenharmony_ci        fun6(v: {[key: string]: Array<boolean>}):  number;
368c339a94Sopenharmony_ci        fun7(v: {[key: string]: {[key: string]: string}}):  number;
378c339a94Sopenharmony_ci        fun8(v: Map<string,Map<string,string>>):  number;
388c339a94Sopenharmony_ci        fun9(v: {[key: string]: Human}):  number;
398c339a94Sopenharmony_ci        fun10(v: Map<string,Human>):  number;
408c339a94Sopenharmony_ci        fun11(v: Map<string,any>):  number;
418c339a94Sopenharmony_ci    }
428c339a94Sopenharmony_ci    
438c339a94Sopenharmony_ci   function fun13(v: {[key: string]: string[]}):  number;   
448c339a94Sopenharmony_ci   function fun18(v: Map<string,string[]>):  number;
458c339a94Sopenharmony_ci
468c339a94Sopenharmony_ci   
478c339a94Sopenharmony_ci   /*
488c339a94Sopenharmony_ci   function fun14(v: number): {[key: string]: string[]}; --暂时不支持
498c339a94Sopenharmony_ci   function fun15(v: number):Map<string,string[]> --暂时不支持
508c339a94Sopenharmony_ci   */
518c339a94Sopenharmony_ci   
528c339a94Sopenharmony_ci}
538c339a94Sopenharmony_ciexport default napitest;