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 CHANGED
@@ -1,18 +1,6 @@
1
- interface Structure {
2
- /**
3
- * 判断数据结构是否为空
4
- */
5
- isEmpty(): boolean;
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jc-structure",
3
3
  "private": false,
4
- "version": "0.0.3",
4
+ "version": "0.0.4",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -0,0 +1,18 @@
1
+ interface Structure {
2
+ /**
3
+ * 判断数据结构是否为空
4
+ */
5
+ isEmpty(): boolean;
6
+ /**
7
+ * 数据结构元素长度
8
+ */
9
+ size(): number;
10
+ /**
11
+ * 清除数据结构元素
12
+ */
13
+ clear(): void;
14
+ /**
15
+ * 重写 toString 方法
16
+ */
17
+ toString(): string;
18
+ }