UNPKG

libmodulor

Version:

A TypeScript library to create platform-agnostic applications

10 lines (9 loc) 235 B
export function bindFactory(container, identifier) { container .bind(`Factory<${identifier}>`) .toFactory((context) => { return async (clazz) => { return context.get(clazz); }; }); }