• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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(v: number): number;
19    function fun2(v1: number, v2: number[]): number[];
20    function fun3(v1: Array<number>, v2: number): Array<number>;
21    function fun4(v: { [key: string]: number }): number;
22    function fun5(v1: Map<string, number>, v2: number): number;
23    function fun6(v1: number, callback: AsyncCallback<number>): void;
24    function fun6(v1: number): Promise<number>;
25    function fun7(v: number, v1: AsyncCallback<Array<number>>): void;
26    function fun7(v: number): Promise<Array<number>>;
27    function fun9(v1: number, callback: Callback<number>): void;
28    function fun10(v1: Test): Test;
29    interface Test {
30        age: number;
31        height: number[];
32        width: Array<number>;
33    }
34
35    /*function fun11(v1: Test1): Test;
36    interface Test1 {
37        address: { [key: string]: number };
38        long: Map<string, number>;
39    }
40    function fun8(v1: number, callback: AsyncCallback<number[]>): void;
41    function fun8(v1: number): Promise<number[]>;*/
42}
43
44export default napitest;
45