mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: add CompositeAsyncHandler to support multiple handlers
This commit is contained in:
@@ -5,4 +5,4 @@ import { Operation } from '../operations/Operation';
|
||||
/**
|
||||
* Converts an incoming HttpRequest to an Operation.
|
||||
*/
|
||||
export type RequestParser = AsyncHandler<HttpRequest, Operation>;
|
||||
export abstract class RequestParser extends AsyncHandler<HttpRequest, Operation> {}
|
||||
|
||||
@@ -4,4 +4,4 @@ import { Operation } from './Operation';
|
||||
/**
|
||||
* Handler for a specific operation type.
|
||||
*/
|
||||
export type OperationHandler = AsyncHandler<Operation>;
|
||||
export abstract class OperationHandler extends AsyncHandler<Operation> {}
|
||||
|
||||
@@ -5,4 +5,4 @@ import { PermissionSet } from './PermissionSet';
|
||||
/**
|
||||
* Verifies which permissions are requested on a given {@link Operation}.
|
||||
*/
|
||||
export type PermissionsExtractor = AsyncHandler<Operation, PermissionSet>;
|
||||
export abstract class PermissionsExtractor extends AsyncHandler<Operation, PermissionSet> {}
|
||||
|
||||
Reference in New Issue
Block a user