UNPKG

autumn-js

Version:
19 lines (16 loc) 686 B
import { R as RouteName, c as createAutumnEndpoint } from './createAutumnEndpoint-Clm1sxhQ.js'; import { AutumnOptions } from './types.js'; import '@better-auth/core/api'; /** Type for a single autumn endpoint */ type AutumnEndpoint<T extends RouteName> = ReturnType<typeof createAutumnEndpoint<T>>; /** Autumn endpoints type - maps each route to its endpoint type */ type AutumnEndpoints = { [K in RouteName]: AutumnEndpoint<K>; }; /** Autumn plugin return type */ type AutumnPlugin = { id: "autumn"; endpoints: AutumnEndpoints; }; declare function autumn(options?: AutumnOptions): AutumnPlugin; export { type AutumnEndpoints, AutumnOptions, type AutumnPlugin, autumn };