function / @typed/react

useRuntime

Resolves an explicit runtime before the closest Provider. Ambient requirements are checked at runtime.

Package version
1.0.0-beta.13
Category
function

Import

import { useRuntime } from "@typed/react";

Signatures

export declare function useRuntime<R = never, ER = never>(runtime?: Runtime<R, ER>): Runtime<R, ER>;

Other public imports

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

Source