UNPKG

@studyportals/sp-r2d2

Version:

A framework that contains various components used when developing projects that will be deployed via AWS λ.

14 lines (13 loc) 453 B
import { IResult } from '@studyportals/sp-r2d2-interface'; import { IRequest } from '../requests-interfaces/i-request.interface'; /** * Offers the necessary functionality to handle a request. */ export interface IRequestHandler { /** * Carries out the necessary operations to handle the specified request. * * @param request The request that is to be handled. */ handle(request: IRequest): Promise<IResult>; }