ditto/packages/api/DittoEnv.ts
2025-02-17 22:15:32 -06:00

20 lines
531 B
TypeScript

import type { DittoConf } from '@ditto/conf';
import type { DittoDatabase } from '@ditto/db';
import type { Env } from '@hono/hono';
import type { NRelay } from '@nostrify/nostrify';
export interface DittoEnv extends Env {
Variables: {
/** Ditto site configuration. */
conf: DittoConf;
/** Relay store. */
relay: NRelay;
/**
* Database object.
* @deprecated Store data as Nostr events instead.
*/
db: DittoDatabase;
/** Abort signal for the request. */
signal: AbortSignal;
};
}