• 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*/
15declare namespace napitest {
16    interface TestClass1 {
17        any1: any;
18        /*  any���͵Ŀ�ѡ�������ݲ�֧��
19        focused?: any;
20        $def?: any;
21        arr?: Array<any>;
22        arr1?: any[];
23        extraInfo?: { [key: string]: any };
24        test?: (data: any, code: number) => void;
25        */
26    }
27
28    export class Want {
29        /*  any���͵Ŀ�ѡ�������ݲ�֧��
30        parameters?: { [key: string]: any };
31        */
32        static Prop(propName: string): any;
33    }
34
35    function fun1(v: any, v1: string): number;
36    function fun2(v: number, v1: TestClass1): number;
37    function fun4(v: number, v1: Array<any>): number;
38    function fun5(v: string, v1: any[]): number;
39    function $fun6(v: boolean, param: Array<any>): number;
40    function fun8(v1: string[], v?: any): number;
41
42    /*function fun10(v: string, v1?: number | Array<any>): string;
43    function fun7(v: string, v1: { [key: string]: any }): number;
44    function fun3(v: string): any;
45    function fun9(v: string, v1: { name: Array<any>, age: number }): number;*/
46}
47
48export default napitest;