初始化版本库,可用
This commit is contained in:
14
types/Geometry/Count.d.ts
vendored
Normal file
14
types/Geometry/Count.d.ts
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* 一个简单的计数器实现,本质是使用一个Map来保存元素的个数
|
||||
*
|
||||
* 例:
|
||||
* let count = new Count();
|
||||
* count.AddCount("Test", 1);
|
||||
* count.GetCount("Test");//现在 Test 的个数为1
|
||||
*/
|
||||
export declare class Count {
|
||||
private m_CountMap;
|
||||
GetCount(obj: any): number;
|
||||
AddCount(obj: any, add: number): void;
|
||||
}
|
||||
//# sourceMappingURL=Count.d.ts.map
|
Reference in New Issue
Block a user