@solidjs/signals 0.0.4 → 0.0.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/dist/dev.js +92 -19
- package/dist/node.cjs +221 -145
- package/dist/prod.js +218 -145
- package/dist/types/core/index.d.ts +1 -0
- package/dist/types/core/scheduler.d.ts +1 -0
- package/dist/types/core/suspense.d.ts +1 -1
- package/dist/types/core/utils.d.ts +5 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/signals.d.ts +8 -3
- package/package.json +1 -1
- package/dist/types/utils.d.ts +0 -1
|
@@ -23,4 +23,5 @@ export declare const globalQueue: Queue;
|
|
|
23
23
|
* the queue synchronously to get the latest updates by calling `flushSync()`.
|
|
24
24
|
*/
|
|
25
25
|
export declare function flushSync(): void;
|
|
26
|
+
export declare function queueTask(fn: () => void): void;
|
|
26
27
|
export declare function createBoundary<T>(fn: () => T, queue: IQueue): T;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Computation, ContextNotFoundError, NoOwnerError, NotReadyError, Owner, Queue, createContext, flushSync, createBoundary, getContext, setContext, hasContext, getOwner, onCleanup, getObserver, isEqual, untrack, hasUpdated, isPending, latest, createSuspense, SUPPORTS_PROXY } from "./core/index.js";
|
|
1
|
+
export { Computation, ContextNotFoundError, NoOwnerError, NotReadyError, Owner, Queue, createContext, flatten, flushSync, createBoundary, getContext, setContext, hasContext, getOwner, onCleanup, getObserver, isEqual, untrack, hasUpdated, isPending, latest, createSuspense, SUPPORTS_PROXY } from "./core/index.js";
|
|
2
2
|
export type { ErrorHandler, SignalOptions, Context, ContextRecord, Disposable, IQueue } from "./core/index.js";
|
|
3
3
|
export { mapArray, type Maybe } from "./map.js";
|
|
4
4
|
export * from "./signals.js";
|
package/dist/types/signals.d.ts
CHANGED
|
@@ -130,7 +130,12 @@ export declare function createRoot<T>(init: ((dispose: () => void) => T) | (() =
|
|
|
130
130
|
*/
|
|
131
131
|
export declare function runWithOwner<T>(owner: Owner | null, run: () => T): T | undefined;
|
|
132
132
|
/**
|
|
133
|
-
* Runs
|
|
134
|
-
*
|
|
133
|
+
* Runs an effect whenever an error is thrown within the context of the child scopes
|
|
134
|
+
* @param fn boundary for the error
|
|
135
|
+
* @param handler an error handler that receives the error
|
|
136
|
+
*
|
|
137
|
+
* * If the error is thrown again inside the error handler, it will trigger the next available parent handler
|
|
138
|
+
*
|
|
139
|
+
* @description https://docs.solidjs.com/reference/reactive-utilities/catch-error
|
|
135
140
|
*/
|
|
136
|
-
export declare function catchError<T>(fn: () => T, handler: (error: unknown) => void):
|
|
141
|
+
export declare function catchError<T>(fn: () => T, handler: (error: unknown) => void): T | undefined;
|
package/package.json
CHANGED
package/dist/types/utils.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isUndefined(value: any): value is undefined;
|