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