Typescript Patterns is a Typescript patterns example set.
You can check examples from list or check from console pannel, also you can inspect the code.
pip install foobar
Insert in console pannel (Notice that module paths depends from dinamic url in the html)
// Inspect in html to copy path
const modulePath = '/src/main.ts';
Check available objects
import(modulePath).then(module => {
console.table(module.patterns);
});
Execute methdo from imported object
import(modulePath).then(module => {
const { factoryMethod } = module.patterns;
factoryMethod.initialize();
});
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.