-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexampleA.ts
More file actions
48 lines (46 loc) · 864 Bytes
/
exampleA.ts
File metadata and controls
48 lines (46 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* @name 示例
* @desc 这时一段示例的描述
*/
export interface IExample {
/**
* @desc DEMO desc
* @return {Promise<AppStateType>}
* @example
* demo().then((v) => {
* console.log(v)
* });
*/
demo: () => Promise<State>;
/**
* @desc 改变 DEMO
* @param callback 回调
* @return DEMO 数字
* @example
* let mock = demoChange((callback: State) => {
* console.log(callback)
* });
*/
demoChange: (callback: (v: State) => void) => number;
/**
* @desc DEMO 状态
* @param v 入参
* @return 无
* @example
* demoStatus(v);
*/
demoStatus: (v: number | IExample) => void;
}
/**
* @desc 枚举的 Exp
*/
export enum State {
/**
* @desc STATUS 的描述
*/
STATUS = "status",
/**
* @desc WHAT?
*/
WHAT = "what",
}