eigent/package/@stackframe/stack-shared/dist/hooks/use-async-external-store.d.ts
wol 03f2c49b7e
Some checks failed
Remove old artifacts / remove-old-artifacts (push) Has been cancelled
init
2025-08-04 00:20:29 +08:00

8 lines
244 B
TypeScript

import { AsyncResult } from '../utils/results.js';
declare function useAsyncExternalStore<T>(subscribe: (callback: (t: T) => void) => (() => void)): AsyncResult<T, never> & {
status: "ok" | "pending";
};
export { useAsyncExternalStore };