1/* 2* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development 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*/ 15declare namespace napitest { 16 interface TestClass1 { 17 any1: any; 18 focused?: any; 19 $def?: any; 20 arr?: Array<any>; 21 arr1?: any[]; 22 extraInfo?: { [key: string]: any }; 23 test?: (data: any, code: number) => void; 24 } 25 26 export class Want { 27 parameters?: { [key: string]: any }; 28 static Prop(propName: string): any; 29 } 30 31 function fun1(v: any, v1: string): number; 32 function fun2(v: number, v1: TestClass1): number; 33 function fun4(v: number, v1: Array<any>): number; 34 function fun5(v: string, v1: any[]): number; 35 function $fun6(v: boolean, param: Array<any>): number; 36 function fun8(v1: string[], v?: any): number; 37 38 /*function fun10(v: string, v1?: number | Array<any>): string; 39 function fun7(v: string, v1: { [key: string]: any }): number; 40 function fun3(v: string): any; 41 function fun9(v: string, v1: { name: Array<any>, age: number }): number;*/ 42} 43 44export default napitest;