micro-design-docs / Exports / MyClass
Class: MyClass
类
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new MyClass()
构造函数
Defined in
index.ts:24
Properties
prop1
• prop1: number
类的属性
Defined in
index.ts:21
Methods
privateMethod1
▸ Private
privateMethod1(param1
, param2
): number
私有方法
Parameters
Name | Type | Description |
---|---|---|
param1 | number | 第一个参数 |
param2 | number | 第二个参数 |
Returns
number
两数之和
Defined in
index.ts:42
publicMethod
▸ publicMethod(param1
, param2
): number
公共方法
Parameters
Name | Type |
---|---|
param1 | number |
param2 | number |
Returns
number
Defined in
index.ts:47
staticMethod1
▸ Static
staticMethod1(param
): Promise
<string
[]>
静态方法
Parameters
Name | Type | Description |
---|---|---|
param | string [] | 参数,字符串列表 |
Returns
Promise
<string
[]>
返回 Promise 对象
Defined in
index.ts:33