Skip to main content
Module

x/fastro/container.ts

Fast and simple web application framework for deno
Go to Latest
File
// deno-lint-ignore-file no-explicit-any// Define container type// 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;