aesy/reddit-comment-highlights

View on GitHub
src/registry/FunctionRegistry.ts

Summary

Maintainability
A
0 mins
Test Coverage
export interface FunctionRegistry {
    register<T, R>(key: string, action: (arg: T) => R): void;
    unregister(key: string): void;
    invoke<T, R>(key: string, arg?: T): Promise<R>;
    dispose(): void;
}