UNPKG

@fedify/express

Version:
9 lines (6 loc) 492 B
import { Federation } from '@fedify/fedify'; import { Request, Response, NextFunction } from 'express'; type Middleware = (req: Request, res: Response, next: NextFunction) => void; type ContextDataFactory<TContextData> = (req: Request) => TContextData | Promise<TContextData>; declare function integrateFederation<TContextData>(federation: Federation<TContextData>, contextDataFactory: ContextDataFactory<TContextData>): Middleware; export { type ContextDataFactory, integrateFederation };