Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/tappin/core/mod.ts>ModuleDsl

🦖 Powerful application framework for Deno
Latest
interface ModuleDsl
import { type ModuleDsl } from "https://deno.land/x/tappin@0.5.0/core/mod.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