Appearance
twine / defineModule
Function: defineModule()
defineModule(
metadata,instance):ConfiguredModule
Defined in: module.decorator.ts:52
Build a ConfiguredModule from explicit metadata + a ready instance - the building block of a forFeature-style factory:
ts
export const Door = (cfg: DoorConfig) =>
defineModule({ name: `door_${cfg.id}`, env: cfg.env }, new DoorFeature(cfg));