@zayne-labs/toolkit-react 0.9.44 → 0.9.46
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.
@@ -15,6 +15,8 @@ type CustomContextOptions<TContextValue, TStrict extends boolean> = {
|
|
15
15
|
strict?: TStrict;
|
16
16
|
};
|
17
17
|
type UseCustomContextResult<TContextValue, TStrict extends boolean> = TStrict extends true ? TContextValue : TContextValue | null;
|
18
|
-
declare const createCustomContext: <TContextValue, TStrict extends boolean = true>(options?: CustomContextOptions<TContextValue, TStrict>) => [react.Context<TContextValue | null>, () => UseCustomContextResult<TContextValue, TStrict>]
|
18
|
+
declare const createCustomContext: <TContextValue, TStrict extends boolean = true>(options?: CustomContextOptions<TContextValue, TStrict>) => [react.Context<TContextValue | null>, () => UseCustomContextResult<TContextValue, TStrict>] & {
|
19
|
+
"~inferredUnion": react.Context<TContextValue | null> | (() => UseCustomContextResult<TContextValue, TStrict>);
|
20
|
+
};
|
19
21
|
|
20
22
|
export { ContextError as C, type CustomContextOptions as a, createCustomContext as c, getErrorMessage as g };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { C as ContextError, a as CustomContextOptions, c as createCustomContext, g as getErrorMessage } from '../createCustomContext-
|
1
|
+
export { C as ContextError, a as CustomContextOptions, c as createCustomContext, g as getErrorMessage } from '../createCustomContext-C57O-oeR.js';
|
2
2
|
import * as react from 'react';
|
3
3
|
import { useEffect, RefCallback } from 'react';
|
4
4
|
import { NonEmptyArray, Prettify, AnyFunction, CallbackFn, SelectorFn } from '@zayne-labs/toolkit-type-helpers';
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
2
2
|
import { SelectorFn, AnyObject, Prettify } from '@zayne-labs/toolkit-type-helpers';
|
3
3
|
import * as zustand from 'zustand';
|
4
4
|
import { UseBoundStore, StoreApi, StoreMutatorIdentifier, StateCreator as StateCreator$1, Mutate } from 'zustand';
|
5
|
-
import { a as CustomContextOptions } from '../createCustomContext-
|
5
|
+
import { a as CustomContextOptions } from '../createCustomContext-C57O-oeR.js';
|
6
6
|
import { StoreApi as StoreApi$1 } from '@zayne-labs/toolkit-core';
|
7
7
|
|
8
8
|
declare const createZustandContext: <TState extends Record<string, unknown>, TUseBoundStore extends UseBoundStore<StoreApi<TState>> = UseBoundStore<StoreApi<TState>>, TStore extends StoreApi<TState> = StoreApi<TState>>(options?: CustomContextOptions<TUseBoundStore, true>) => [ZustandProvider: (props: ({
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zayne-labs/toolkit-react",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.9.
|
4
|
+
"version": "0.9.46",
|
5
5
|
"description": "A collection of utility functions, types and composables used by my other projects. Nothing too fancy but can be useful.",
|
6
6
|
"author": "Ryan Zayne",
|
7
7
|
"license": "MIT",
|
@@ -47,8 +47,8 @@
|
|
47
47
|
}
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
|
-
"@zayne-labs/toolkit-core": "0.9.
|
51
|
-
"@zayne-labs/toolkit-type-helpers": "0.9.
|
50
|
+
"@zayne-labs/toolkit-core": "0.9.46",
|
51
|
+
"@zayne-labs/toolkit-type-helpers": "0.9.46"
|
52
52
|
},
|
53
53
|
"devDependencies": {
|
54
54
|
"@arethetypeswrong/cli": "^0.18.1",
|