diff --git a/src/app/utils/disposable.ts b/src/app/utils/disposable.ts new file mode 100644 index 00000000..7840fe49 --- /dev/null +++ b/src/app/utils/disposable.ts @@ -0,0 +1,8 @@ +export type DisposeCallback = (...args: Q) => R; +export type DisposableContext

= ( + ...args: P +) => DisposeCallback; + +export const disposable =

( + context: DisposableContext +) => context;