bunja 2.0.0-alpha.4 → 2.0.0-alpha.5
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/deno.json +1 -1
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/package.json +1 -1
- package/react.ts +1 -1
package/deno.json
CHANGED
package/dist/react.d.cts
CHANGED
|
@@ -11,6 +11,6 @@ declare function bindScope<T>(scope: Scope<T>, context: Context<T>): void;
|
|
|
11
11
|
declare function createScopeFromContext<T>(context: Context<T>, hash?: HashFn<T>): Scope<T>;
|
|
12
12
|
declare function useBunja<T>(bunja: Bunja<T>, readScope?: ReadScope): T;
|
|
13
13
|
type ScopePair<T> = [Scope<T>, T];
|
|
14
|
-
declare function inject<const T extends ScopePair<
|
|
14
|
+
declare function inject<const T extends ScopePair<any>[]>(overrideTable: T): ReadScope;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { BunjaStoreContext, BunjaStoreProvider, ScopePair, bindScope, createScopeFromContext, inject, scopeContextMap, useBunja };
|
package/dist/react.d.ts
CHANGED
|
@@ -11,6 +11,6 @@ declare function bindScope<T>(scope: Scope<T>, context: Context<T>): void;
|
|
|
11
11
|
declare function createScopeFromContext<T>(context: Context<T>, hash?: HashFn<T>): Scope<T>;
|
|
12
12
|
declare function useBunja<T>(bunja: Bunja<T>, readScope?: ReadScope): T;
|
|
13
13
|
type ScopePair<T> = [Scope<T>, T];
|
|
14
|
-
declare function inject<const T extends ScopePair<
|
|
14
|
+
declare function inject<const T extends ScopePair<any>[]>(overrideTable: T): ReadScope;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { BunjaStoreContext, BunjaStoreProvider, ScopePair, bindScope, createScopeFromContext, inject, scopeContextMap, useBunja };
|
package/package.json
CHANGED
package/react.ts
CHANGED
|
@@ -62,7 +62,7 @@ export function useBunja<T>(
|
|
|
62
62
|
|
|
63
63
|
export type ScopePair<T> = [Scope<T>, T];
|
|
64
64
|
|
|
65
|
-
export function inject<const T extends ScopePair<
|
|
65
|
+
export function inject<const T extends ScopePair<any>[]>(
|
|
66
66
|
overrideTable: T,
|
|
67
67
|
): ReadScope {
|
|
68
68
|
const map = new Map(overrideTable);
|