zod-server-actions
Version:
Simple utility library to create server actions in Next.js
10 lines (9 loc) • 320 B
TypeScript
import type { Config } from "./config";
export declare class Context<T extends object> {
private readonly config;
private context;
constructor(config: Omit<Config<T>, "setConfig">);
get<K extends keyof T>(key: K): Promise<T[K]>;
get<K extends keyof T>(key?: K): Promise<T>;
private getContext;
}