@unito/integration-sdk
Version:
Integration SDK
16 lines (15 loc) • 647 B
TypeScript
import { Request, Response, NextFunction } from 'express';
declare global {
namespace Express {
interface Locals {
/**
* An AbortSignal instantiated with the X-Unito-Operation-Deadline header. This header contains the timestamp
* after which Unito will consider the operation to be timed out. You can use this signal to abort any
* operation that would exceed this time frame.
*/
signal?: AbortSignal;
}
}
}
declare function extractOperationDeadline(req: Request, res: Response, next: NextFunction): void;
export default extractOperationDeadline;