function / @typed/svelte/Reactive

useService

Reads any Effect service using the same runtime, SSR, and failure contract.

Package version
1.0.0-beta.13
Category
function

Import

import { useService } from "@typed/svelte/Reactive";

Signatures

export declare function useService<I, A, ER = never>(service: Context.Service<I, A>, options?: SourceOptions<A, never, I, ER>): AsyncState<A, ER>;

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source