refactor: Split off AclInitializer.

This commit is contained in:
Ruben Verborgh
2020-12-07 22:03:12 +01:00
committed by Joachim Van Herwegen
parent 9c933fd2d4
commit 8fbb4f592e
8 changed files with 172 additions and 111 deletions

View File

@@ -1,7 +1,7 @@
/**
* Simple interface for classes that can potentially handle a specific kind of data asynchronously.
*/
export abstract class AsyncHandler<TInput, TOutput = void> {
export abstract class AsyncHandler<TInput = void, TOutput = void> {
/**
* Checks if the input data can be handled by this class.
* Throws an error if it can't handle the data.