We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2249f79 commit 2b765dfCopy full SHA for 2b765df
.changeset/tough-plums-draw.md
@@ -0,0 +1,5 @@
1
+---
2
+"@solid-primitives/resource": patch
3
4
+
5
+fix createAbortable return type
packages/resource/src/index.ts
@@ -78,7 +78,9 @@ export function makeAbortable(
78
* - `noAutoAbort`: can be set to true to make a new source not automatically abort a previous request
79
*/
80
81
-export function createAbortable(options?: AbortableOptions) {
+export function createAbortable(
82
+ options?: AbortableOptions
83
+): [() => AbortSignal, () => void, (err: any) => void] {
84
const [signal, abort, filterAbortError] = makeAbortable(options);
85
onCleanup(abort);
86
return [signal, abort, filterAbortError];
0 commit comments