Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/tappin/core/module.ts>ModuleDsl

🦖 Powerful application framework for Deno
Latest
interface ModuleDsl
import { type ModuleDsl } from "https://deno.land/x/tappin@0.5.0/core/module.ts";

Context used during initialization of module

Methods

import(m: Module): ModuleDsl

Imports another module into this module

service(s: Service): ModuleDsl

Adds a service to this module

build(): Module

Compiles this DSL into module

set<T>(key: string | symbol, value: T): ModuleDsl

Sets metadata

apply(f: (dsl: ModuleDsl) => ModuleDsl): ModuleDsl

Applies given DSL to this DSL

name(name: string): ModuleDsl

Changes name of this module