Skip to main content
Module

x/fastro/templates/container.ts

Fast and simple web application framework for deno
Go to Latest
File
export const container = `// Define dependency injection: https://en.wikipedia.org/wiki/Dependency_injection// You can customize this type according to your needsexport type Container = { repository: any;};
// Dependency injection: https://en.wikipedia.org/wiki/Dependency_injection#Other_types// You can put all your dependencies to this variableconst container: Container = { repository: new Promise((resolve) => resolve("connected!")),};
export default () => container;
`;