The Summoning Charm used in Deno World! Also a dependency injection lib that use Typescript.
Repository
Current version released
4 years ago
Dependencies
deno.land/x
Versions
Accio
The Summoning Charm used in Deno World!
Also a dependency injection lib that use Typescript.
Quick Start
your mod.ts file:
import { Injectable, MainApplication, boost } from "https://deno.land/x/accio/mod.ts";
@Injectable()
export class TheElderWand {
wave() {
console.log("boomb!!");
}
}
@MainApplication()
export class Wizard {
constructor(private wand: TheElderWand) {}
@boost()
use() {
this.wand.wave();
}
}
your tsconfig.json file:
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true
}
}
run deno run -c tsconfig.json mod.ts
then you will get boomb!!
in your terminal!
Document
work in progress :p