@ts-type/bluebird 1.0.2 → 1.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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
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
+ ## [1.0.4](https://github.com/bluelovers/ws-ts-type/compare/@ts-type/bluebird@1.0.3...@ts-type/bluebird@1.0.4) (2026-03-07)
7
+
8
+ **Note:** Version bump only for package @ts-type/bluebird
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.0.3](https://github.com/bluelovers/ws-ts-type/compare/@ts-type/bluebird@1.0.2...@ts-type/bluebird@1.0.3) (2026-03-07)
15
+
16
+ **Note:** Version bump only for package @ts-type/bluebird
17
+
18
+
19
+
20
+
21
+
6
22
  ## [1.0.2](https://github.com/bluelovers/ws-ts-type/compare/@ts-type/bluebird@1.0.1...@ts-type/bluebird@1.0.2) (2026-03-07)
7
23
 
8
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-type/bluebird",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Bluebird Promise 類型的增強類型定義 | Enhanced type definitions for Bluebird Promise",
5
5
  "keywords": [
6
6
  ".d.ts",
@@ -84,10 +84,10 @@
84
84
  },
85
85
  "dependencies": {
86
86
  "@types/bluebird": "*",
87
- "ts-type": "^3.0.2"
87
+ "ts-type": "^3.0.5"
88
88
  },
89
89
  "publishConfig": {
90
90
  "access": "public"
91
91
  },
92
- "gitHead": "57f82cba146cfef0d0f3f138e5ec736cd17f040d"
92
+ "gitHead": "b51f3132e548b3444935904904d3f02324b5d4fe"
93
93
  }
package/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"","sourcesContent":["import Bluebird from 'bluebird';\n\nimport { ITSKeyOfRecordExtractToKey } from 'ts-type/lib/helper/record/pick-type';\nimport { ITSAnyFunction } from 'ts-type/lib/type/base';\nimport { ITSAwaitedReturnType } from 'ts-type/lib/helper/promise';\n\n/**\n * Bluebird Promise 類型的別名\n * Bluebird Promise type alias\n *\n * @typeParam T - Promise 解決值的類型 / Type of the resolved value\n */\nexport type IBluebird<T> = Bluebird<T>;\n\n/**\n * Bluebird Promise 類型的別名(較短名稱)\n * Bluebird Promise type alias (shorter name)\n *\n * @typeParam T - Promise 解決值的類型 / Type of the resolved value\n */\nexport type ITSBluebird<T> = Bluebird<T>;\n\n/**\n * 將函式包裝為回傳 Bluebird Promise 的函式\n * Wrap a function to return Bluebird Promise\n *\n * @typeParam T - 原函式類型 / Original function type\n * @example\n * function add(a: number, b: number): number { return a + b; }\n * const bluebirdAdd = wrapFunctionBluebird(add);\n * // bluebirdAdd(1, 2) returns Bluebird<number>\n */\nexport type ITSWrapFunctionBluebird<T extends (...args: any[]) => any> =\n\t(...args: Parameters<T>) => IBluebird<ITSAwaitedReturnType<T>>;\n\n/**\n * 將物件的所有函式屬性轉換為 Bluebird Promise 版本\n * Convert all function properties of an object to Bluebird Promise version\n *\n * @typeParam T - 目標物件類型 / Target object type\n * @typeParam K - 提取的函式鍵名 / Extracted function keys\n */\nexport type ITSBluebirdPromisifyAll<T extends {\n\t[p: string | symbol]: ITSAnyFunction\n}, K extends ITSKeyOfRecordExtractToKey<T, Function> = ITSKeyOfRecordExtractToKey<T, Function>> = Omit<T, K> & {\n\t[P in K]: (...argv: Parameters<T[P]>) => IBluebird<ITSAwaitedReturnType<T[P]>>\n}\n\n/**\n * 將物件的所有函式屬性轉換為標準 Promise 版本(非 Bluebird)\n * Convert all function properties of an object to standard Promise version (non-Bluebird)\n *\n * @typeParam T - 目標物件類型 / Target object type\n * @typeParam K - 提取的函式鍵名 / Extracted function keys\n */\nexport type ITSPromisifyAll<T extends {\n\t[p: string | symbol]: ITSAnyFunction\n}, K extends ITSKeyOfRecordExtractToKey<T, Function> = ITSKeyOfRecordExtractToKey<T, Function>> = Omit<T, K> & {\n\t[P in K]: (...argv: Parameters<T[P]>) => Promise<ITSAwaitedReturnType<T[P]>>\n}\n\n/**\n * 將元組類型轉換為 Bluebird Inspection 類型的元組\n * Convert tuple type to tuple of Bluebird Inspection types\n *\n * 用於處理 Promise.allSettled 的結果類型\n * Used for handling Promise.allSettled result types\n *\n * @typeParam T - 輸入的元組類型 / Input tuple type\n */\nexport type ITSResultArrayToBluebirdInspection<T> = T extends [infer T1, infer T2, infer T3, infer T4, infer T5]\n\t? [Bluebird.Inspection<T1>, Bluebird.Inspection<T2>, Bluebird.Inspection<T3>, Bluebird.Inspection<T4>, Bluebird.Inspection<T5>]\n\t: T extends [infer T1, infer T2, infer T3, infer T4]\n\t\t? [Bluebird.Inspection<T1>, Bluebird.Inspection<T2>, Bluebird.Inspection<T3>, Bluebird.Inspection<T4>]\n\t\t: T extends [infer T1, infer T2, infer T3]\n\t\t\t? [Bluebird.Inspection<T1>, Bluebird.Inspection<T2>, Bluebird.Inspection<T3>]\n\t\t\t: T extends [infer T1, infer T2] ? [Bluebird.Inspection<T1>, Bluebird.Inspection<T2>] : T extends [infer T1]\n\t\t\t\t? [Bluebird.Inspection<T1>]\n\t\t\t\t: T extends (infer R)[] ? Bluebird.Inspection<R>[] : never;\n"]}