composition-ts 0.0.1 → 0.1.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -13,13 +13,13 @@ type Compose<Types extends readonly unknown[]> = Types extends readonly [infer H
13
13
  * ## About
14
14
  * @package CompositionTs
15
15
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
16
- * @version 0.0.1 (Last Update: 2026.03.26 10:29:11.705)
16
+ * @version 0.1.0 (Last Update: 2026.03.26 11:15:42.072)
17
17
  * @license MIT
18
18
  * @link git+https://github.com/baendlorel/kt-packages.git
19
19
  * @link https://baendlorel.github.io/ Welcome to my site!
20
20
  * @description Instead of inheritance, make it composition!
21
21
  * @copyright Copyright (c) 2026 Kasukabe Tsumugi. All rights reserved.
22
22
  */
23
- declare function compose<Protos extends readonly object[], Args extends any[], Instance extends Compose<Protos>>(initializer: (this: Instance, ...args: Args) => any, parts: Protos, className?: string): new (...args: Args) => Instance;
23
+ declare function compose<Protos extends readonly object[], Args extends any[], Instance extends Compose<Protos> = Compose<Protos>>(initializer: (this: Instance, ...args: Args) => any, parts: Protos, className?: string): new (...args: Args) => Instance;
24
24
 
25
25
  export { compose };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "composition-ts",
3
- "version": "0.0.1",
3
+ "version": "0.1.0",
4
4
  "author": {
5
5
  "name": "Kasukabe Tsumugi",
6
6
  "email": "futami16237@gmail.com"
@@ -33,4 +33,4 @@
33
33
  "url": "https://github.com/baendlorel/kt-packages/issues"
34
34
  },
35
35
  "homepage": "https://github.com/baendlorel/kt-packages/tree/main/packages/composition-ts#readme"
36
- }
36
+ }