Skip to content

Commit 6531a76

Browse files
committed
Export AccessorWithLatest type
1 parent ee19a7a commit 6531a76

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/data/createAsync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { isServer } from "solid-js/web";
1010
* this type allows to support `latest` field for these primitives.
1111
* It will be removed in the future.
1212
*/
13-
type AccessorWithLatest<T> = {
13+
export type AccessorWithLatest<T> = {
1414
(): T;
1515
latest: T;
1616
}

src/data/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export { createAsync, createAsyncStore } from "./createAsync.js";
1+
export { createAsync, createAsyncStore, type AccessorWithLatest } from "./createAsync.js";
22
export { action, useSubmission, useSubmissions, useAction, type Action } from "./action.js";
33
export { cache, revalidate, type CachedFunction } from "./cache.js";
44
export { redirect, reload, json } from "./response.js";

0 commit comments

Comments
 (0)