Files
photography_form_worker/node_modules/optimism/src/context.ts
2025-05-15 13:32:55 +10:00

17 lines
357 B
TypeScript

import { Slot } from "@wry/context";
import { AnyEntry } from "./entry.js";
export const parentEntrySlot = new Slot<AnyEntry | undefined>();
export function nonReactive<R>(fn: () => R): R {
return parentEntrySlot.withValue(void 0, fn);
}
export { Slot }
export {
bind as bindContext,
noContext,
setTimeout,
asyncFromGen,
} from "@wry/context";