Skip to content

Commit 2b765df

Browse files
committed
fix(resource): createAbortable return type
1 parent 2249f79 commit 2b765df

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/tough-plums-draw.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solid-primitives/resource": patch
3+
---
4+
5+
fix createAbortable return type

packages/resource/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ export function makeAbortable(
7878
* - `noAutoAbort`: can be set to true to make a new source not automatically abort a previous request
7979
*/
8080

81-
export function createAbortable(options?: AbortableOptions) {
81+
export function createAbortable(
82+
options?: AbortableOptions
83+
): [() => AbortSignal, () => void, (err: any) => void] {
8284
const [signal, abort, filterAbortError] = makeAbortable(options);
8385
onCleanup(abort);
8486
return [signal, abort, filterAbortError];

0 commit comments

Comments
 (0)