@esportsplus/reactivity 0.11.7 → 0.11.8
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.
|
@@ -7,6 +7,6 @@ type Input<T> = T extends {
|
|
|
7
7
|
signals: any;
|
|
8
8
|
} ? {
|
|
9
9
|
never: '[ dispose, signals ] are reserved keys';
|
|
10
|
-
} : T
|
|
11
|
-
declare const _default: <T>(input: Input<T>) => API<T>;
|
|
10
|
+
} : T;
|
|
11
|
+
declare const _default: <T extends Record<PropertyKey, unknown> | unknown[]>(input: Input<T>) => API<T>;
|
|
12
12
|
export default _default;
|
package/package.json
CHANGED
package/src/reactive/index.ts
CHANGED
|
@@ -13,12 +13,10 @@ type API<T> =
|
|
|
13
13
|
type Input<T> =
|
|
14
14
|
T extends { dispose: any } | { signals: any }
|
|
15
15
|
? { never: '[ dispose, signals ] are reserved keys' }
|
|
16
|
-
: T
|
|
17
|
-
? T
|
|
18
|
-
: never;
|
|
16
|
+
: T;
|
|
19
17
|
|
|
20
18
|
|
|
21
|
-
export default <T>(input: Input<T>): API<T> => {
|
|
19
|
+
export default <T extends Record<PropertyKey, unknown> | unknown[]>(input: Input<T>): API<T> => {
|
|
22
20
|
if (isArray(input)) {
|
|
23
21
|
return array(input) as API<T>;
|
|
24
22
|
}
|