UNPKG

create-better-t-stack

Version:

A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations

14 lines (10 loc) 300 B
import type { Context as ElysiaContext } from "elysia"; export type CreateContextOptions = { context: ElysiaContext; }; export async function createContext({ context }: CreateContextOptions) { return { session: null, }; } export type Context = Awaited<ReturnType<typeof createContext>>;