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