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 function fun1(mancc: {name: string, age: number}): string; //函数单参数非嵌套场景 19 20 interface TestInterfaceAA { 21 an: string; 22 al: string; 23 } 24 interface TestInterface { 25 anchor: string; 26 align: string; 27 left: { test1: string, test2: string };//interface域变量场景 28 } 29 30 function fun2(fp2: TestInterface): string; 31 function fun3(name : string, fp3: {nm: string, age: number}): string; //函数多参数非嵌套场景 32 function fun4(input: string): { read: number; written: number };//函数返回值场景 33 34 function fun5(value: {xOffset: number, animation: { duration: number, curve: string}});//函数单参数嵌套场景 35 function fun6(nm: string, value: {xOffset: number, animation: { duration: number, curve: string}}); //函数多参数嵌套场景 36 function fun7(nm: string, value: {xOffset: number; animation: { duration: number; curve: string}}); //暂不支持 分号场景 37 38} 39 40export default napitest;