jc-structure 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +5 -17
- package/package.json +1 -1
- package/types/global.d.ts +18 -0
package/index.d.ts
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* 数据结构元素长度
|
|
8
|
-
*/
|
|
9
|
-
size(): number;
|
|
10
|
-
/**
|
|
11
|
-
* 清除数据结构元素
|
|
12
|
-
*/
|
|
13
|
-
clear(): void;
|
|
14
|
-
/**
|
|
15
|
-
* 重写 toString 方法
|
|
16
|
-
*/
|
|
17
|
-
toString(): string;
|
|
1
|
+
declare module "jc-structure" {
|
|
2
|
+
class Stack<T> implements IStack<T> {}
|
|
3
|
+
|
|
4
|
+
class Queue<T> implements IQueue<T> {}
|
|
5
|
+
export { Stack, Queue };
|
|
18
6
|
}
|
package/package.json
CHANGED