@proto-kit/moduleDocs


Documentation / @proto-kit/module / runtimeModule

Function: runtimeModule()

runtimeModule(): (target) => void

Marks the decorated class as a runtime module, while also making it injectable with our dependency injection solution.

Returns

Function

Parameters

target: StaticConfigurableModule<unknown> & TypedClass<RuntimeModule<unknown>>

Check if the target class extends RuntimeModule, while also providing static config presets

Returns

void

Defined in

packages/module/src/module/decorator.ts:10