Skip to content

Instantly share code, notes, and snippets.

View di-for-effects.ts
interface ILogger {
log: (str: string) => void;
}
class Logger implements ILogger {
log = (str: string): void => {
console.log(str);
};
}