UNPKG

@athenox/talos

Version:

Talos: a backend you describe instead of write. Declare a schema, write the rules in plain language, map URLs to sentences; a small built-in model turns them into query plans.

9 lines (8 loc) • 249 B
import { type H3Event } from 'h3'; export type Session = { sid: string; get<T = any>(key: string): T | undefined; set(key: string, value: unknown): void; clear(): void; }; export declare function useSession(event: H3Event): Session;