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*/ 15import { AsyncCallback, Callback } from './../basic'; 16 17declare namespace napitest { 18 class TestClass1 { 19 fun1(v: Object): number; //Interface func para1 20 fun2(num: number, v: Object): number; //Interface func para2 21 fun3(num: number, v: Object, Sam: string): number; //Interface func para3 22 fun4(numcc: number): Object; //Interface func return 23 fun9(): number; 24 } 25 26 interface TestClass2 { 27 num1: number; 28 obj: Object; //Interface var 29 } 30 function fun5(v1: Object): number; //namespace function para1 31 function fun6(num1: number, v2: Object): number; //namespace function para2 32 function fun7(num2: number, v3: Object, nike: string): number; //namespace function para3 33 function fun8(dd: number): Object; //namespace function return 34 /* 35 function fun7(v: number[], cb: Callback<{ name: string, age: number }>): void; 36 function fun6(v: string, cb: AsyncCallback<{ psTech: string, csTech: number }>): void; 37 function fun6(v: string): Promise<{ psTech: string, csTech: number }>;*/ 38 39} 40 41export default napitest; 42