teamplay 0.3.28 → 0.3.29

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/index.d.ts +6 -4
  2. package/package.json +8 -8
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // teamplay/index.d.ts
2
- import type React from 'react'
2
+ import type * as React from 'react'
3
3
 
4
4
  export interface ObserverOptions {
5
5
  /** Wrap the resulting component with forwardRef */
@@ -19,10 +19,12 @@ export interface ObserverOptions {
19
19
  * Props are passed through unchanged; the returned component
20
20
  * preserves the original type so consumers keep full typings.
21
21
  */
22
- export function observer<P, C extends React.ComponentType<P>> (
23
- component: C,
22
+ export function observer<
23
+ P extends Record<string, unknown> = Record<string, unknown>
24
+ > (
25
+ component: React.ComponentType<P>,
24
26
  options?: ObserverOptions
25
- ): C
27
+ ): React.ComponentType<P>
26
28
 
27
29
  // Keep existing public surface available even if typed loosely for now.
28
30
  export const $: any
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teamplay",
3
- "version": "0.3.28",
3
+ "version": "0.3.29",
4
4
  "description": "Full-stack signals ORM with multiplayer",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -23,12 +23,12 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@nx-js/observer-util": "^4.1.3",
26
- "@teamplay/backend": "^0.3.28",
27
- "@teamplay/cache": "^0.3.28",
28
- "@teamplay/channel": "^0.3.28",
29
- "@teamplay/debug": "^0.3.28",
30
- "@teamplay/schema": "^0.3.28",
31
- "@teamplay/utils": "^0.3.28",
26
+ "@teamplay/backend": "^0.3.29",
27
+ "@teamplay/cache": "^0.3.29",
28
+ "@teamplay/channel": "^0.3.29",
29
+ "@teamplay/debug": "^0.3.29",
30
+ "@teamplay/schema": "^0.3.29",
31
+ "@teamplay/utils": "^0.3.29",
32
32
  "diff-match-patch": "^1.0.5",
33
33
  "events": "^3.3.0",
34
34
  "json0-ot-diff": "^1.1.2",
@@ -64,5 +64,5 @@
64
64
  ]
65
65
  },
66
66
  "license": "MIT",
67
- "gitHead": "68528eaf5e8ba2dadd4ed46eee3038416a364f66"
67
+ "gitHead": "9915cfe479d8d218c47706394d51a296a0271477"
68
68
  }