mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
22 lines
580 B
TypeScript
22 lines
580 B
TypeScript
import type { DittoConf } from '@ditto/conf';
|
|
import type { DittoDB } 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: DittoDB;
|
|
/** Abort signal for the request. */
|
|
signal: AbortSignal;
|
|
/** Unique ID for the request. */
|
|
requestId: string;
|
|
};
|
|
}
|