ts-type 3.0.3 → 3.0.7

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/CHANGELOG.md CHANGED
@@ -3,6 +3,46 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.0.7](https://github.com/bluelovers/ws-ts-type/compare/ts-type@3.0.5...ts-type@3.0.7) (2026-03-07)
7
+
8
+
9
+
10
+ ### ✨ Features
11
+
12
+ * **ts-type:** 添加 ITSGenerator 和 ITSAsyncGenerator 類型定義 ([efea1fc](https://github.com/bluelovers/ws-ts-type/commit/efea1fc54b48baa44231d7076f2d994da8c43701))
13
+
14
+
15
+ ### 🔖 Miscellaneous
16
+
17
+ * . ([6328603](https://github.com/bluelovers/ws-ts-type/commit/6328603d30d4af3cf84aefa466f566a127adb2cb))
18
+
19
+
20
+
21
+ ## [3.0.6](https://github.com/bluelovers/ws-ts-type/compare/ts-type@3.0.5...ts-type@3.0.6) (2026-03-07)
22
+
23
+
24
+
25
+ ### ✨ Features
26
+
27
+ * **ts-type:** 添加 ITSGenerator 和 ITSAsyncGenerator 類型定義 ([efea1fc](https://github.com/bluelovers/ws-ts-type/commit/efea1fc54b48baa44231d7076f2d994da8c43701))
28
+
29
+
30
+
31
+ ## [3.0.5](https://github.com/bluelovers/ws-ts-type/compare/ts-type@3.0.3...ts-type@3.0.5) (2026-03-07)
32
+
33
+
34
+
35
+ ### 🛠 Build System
36
+
37
+ * update build ([f075107](https://github.com/bluelovers/ws-ts-type/commit/f075107fcacc46464ef1626db1a6b8b64a2796ff))
38
+
39
+
40
+ ### 🔖 Miscellaneous
41
+
42
+ * . ([7c391ae](https://github.com/bluelovers/ws-ts-type/commit/7c391aebb20fae85f065ea0f9840b3842f8f083e))
43
+
44
+
45
+
6
46
  ## [3.0.3](https://github.com/bluelovers/ws-ts-type/compare/ts-type@3.0.2...ts-type@3.0.3) (2026-03-07)
7
47
 
8
48
 
package/lib/index.d.ts CHANGED
@@ -32,6 +32,7 @@ export * from './logic/record/empty';
32
32
  export * from './logic/union/index';
33
33
  export * from './type/base';
34
34
  export * from './type/decorators';
35
+ export * from './type/generator';
35
36
  export * from './type/iterator';
36
37
  export * from './type/promise';
37
38
  export * from './type/proxy';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * TypeScript Generator 類型
3
+ * TypeScript Generator type
4
+ *
5
+ * 代表 JavaScript Generator 物件的類型
6
+ * Represents the type of a JavaScript Generator object
7
+ *
8
+ * @typeParam T - 生成器yield的值類型 / Type of value yielded by the generator
9
+ * @typeParam TReturn - 生成器完成時返回的類型 / Type returned when generator completes
10
+ * @typeParam TNext - 傳遞給生成器next()方法的參數類型 / Type of argument passed to generator's next() method
11
+ */
12
+ export type ITSGenerator<T = unknown, TReturn = T, TNext = T> = Generator<T, TReturn, TNext>;
13
+ /**
14
+ * TypeScript AsyncGenerator 類型
15
+ * TypeScript AsyncGenerator type
16
+ *
17
+ * 代表 JavaScript AsyncGenerator 物件的類型
18
+ * Represents the type of a JavaScript AsyncGenerator object
19
+ *
20
+ * @typeParam T - 生成器yield的值類型 / Type of value yielded by the async generator
21
+ * @typeParam TReturn - 生成器完成時返回的類型 / Type returned when async generator completes
22
+ * @typeParam TNext - 傳遞給生成器next()方法的參數類型 / Type of argument passed to async generator's next() method
23
+ */
24
+ export type ITSAsyncGenerator<T = unknown, TReturn = T, TNext = T> = AsyncGenerator<T, TReturn, TNext>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["generator.ts"],"names":[],"mappings":"","sourcesContent":["\n/**\n * TypeScript Generator 類型\n * TypeScript Generator type\n *\n * 代表 JavaScript Generator 物件的類型\n * Represents the type of a JavaScript Generator object\n *\n * @typeParam T - 生成器yield的值類型 / Type of value yielded by the generator\n * @typeParam TReturn - 生成器完成時返回的類型 / Type returned when generator completes\n * @typeParam TNext - 傳遞給生成器next()方法的參數類型 / Type of argument passed to generator's next() method\n */\nexport type ITSGenerator<T = unknown, TReturn = T, TNext = T> = Generator<T, TReturn, TNext>;\n\n/**\n * TypeScript AsyncGenerator 類型\n * TypeScript AsyncGenerator type\n *\n * 代表 JavaScript AsyncGenerator 物件的類型\n * Represents the type of a JavaScript AsyncGenerator object\n *\n * @typeParam T - 生成器yield的值類型 / Type of value yielded by the async generator\n * @typeParam TReturn - 生成器完成時返回的類型 / Type returned when async generator completes\n * @typeParam TNext - 傳遞給生成器next()方法的參數類型 / Type of argument passed to async generator's next() method\n */\nexport type ITSAsyncGenerator<T = unknown, TReturn = T, TNext = T> = AsyncGenerator<T, TReturn, TNext>;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-type",
3
- "version": "3.0.3",
3
+ "version": "3.0.7",
4
4
  "description": "TypeScript 類型工具庫:提供豐富的類型操作工具和重新導出的內建類型 / TypeScript type utility library: provides rich type manipulation utilities and re-exported built-in types",
5
5
  "keywords": [
6
6
  ".d.ts",
@@ -97,5 +97,5 @@
97
97
  "peerDependencies": {
98
98
  "ts-toolbelt": "^9.6.0"
99
99
  },
100
- "gitHead": "4ef633a04245358fed59633c9d9ceff0607d30d3"
100
+ "gitHead": "fa1d461d70669aad17f322801a5fde844b2e0c73"
101
101
  }