20 lines
388 B
TypeScript
20 lines
388 B
TypeScript
|
import { Database } from './db'
|
||
|
import { DidResolver } from '@atproto/did-resolver'
|
||
|
|
||
|
export type AppContext = {
|
||
|
db: Database
|
||
|
didResolver: DidResolver
|
||
|
cfg: Config
|
||
|
}
|
||
|
|
||
|
export type Config = {
|
||
|
port: number
|
||
|
listenhost: string
|
||
|
hostname: string
|
||
|
sqliteLocation: string
|
||
|
subscriptionEndpoint: string
|
||
|
serviceDid: string
|
||
|
publisherDid: string
|
||
|
subscriptionReconnectDelay: number
|
||
|
}
|