Skip to content

Instantly share code, notes, and snippets.


Tuğcan Karabörk tuucan

View GitHub Profile
tuucan / ChainOfResponsibility.ts
Last active December 19, 2019 11:12
Typescript implementation of chain of responsibility pattern
View ChainOfResponsibility.ts
interface Handler<T> {
setSuccessor: (successor: T) => void;
handle(...args: any): void;
* Abstract base class for handlers
* hadnles setting and calling successors
* */