• 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 TestClass1 {
19        union1: string | number | boolean;
20    }
21
22    function fun1(v: number | string | boolean): string;
23    function fun2(v0: string, v: number | string | boolean): string;
24    function fun3(v0: string, v: number | string | boolean, no: number): string;
25    /*
26    function fun2(v?: Object | Array<any>): number;   -- 待实现
27    function fun3(v: Array<string | number | boolean>): number;  -- 待实现
28    function fun4(v: { [key: string]: number | string | boolean }): number;   -- 待实现
29    function fun5(v: { [key: string]: Test | Array<string | number | boolean> })  -- 待实现
30    function fun6(v: Test | string): number;    -- 待实现
31    function fun7(v: ResponseCode | string): number;    -- 待实现
32    function fun8(v: string, v1: { name: string | boolean | number, age: number }): number;  -- 待实现
33    function fun9(v: string, v1: AsyncCallback<string | boolean | number | Test>): void;  -- 待实现
34    function fun9(key: string): Promise<string | boolean | number | Test>;
35    function fun9(v: string, v1: AsyncCallback< Array<string | number | boolean>>): void;  -- 待实现
36    function fun9(key: string): Promise<Array<string | number | boolean>>;*/
37}
38
39export default napitest;