• 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 Human {
19        name: string;
20        age: number;
21    }
22
23    export enum LaunchReason {
24        UNKNOWN = 0,
25        START_ABILITY = 1,
26        CALL = 2,
27        CONTINUATION = 3,
28    }
29
30    interface TestClass1 {
31        ahuman: Human;
32        fun1(v: number): number;
33        fun2(numcc: Array<number>, mancc: Human): Human;
34        fun3: (v: number, v1: string, v2: boolean) => boolean;
35        fun4: (mancc: Map<string, string>,v?: string) => Array<number>;
36        fun5: (data: Array<Human>) => Human;
37        fun6: (v: string[], v1: { [key: string]: boolean }) => string[];
38        fun8: () => void;
39        /*fun7: (v: string, v1: LaunchReason) => LaunchReason;  --待支持*/
40    }
41}
42
43export default napitest;
44