Function: NodeConsole()
Function: NodeConsole()
function NodeConsole<T>(options): ClassDecorator;
A Stone.js decorator that integrates the Node Cli Adapter with a class.
This decorator modifies the class to seamlessly enable Node Cli as the execution environment for a Stone.js application. By applying this decorator, the class is automatically configured with the necessary blueprint for Node Cli.
Type Parameters
T
T
extends ClassType
= ClassType
The type of the class being decorated. Defaults to ClassType
.
Parameters
options
NodeConsoleOptions
= {}
Optional configuration to customize the Node Cli Adapter.
Returns
ClassDecorator
A class decorator that applies the Node Cli adapter configuration.
Example
import { NodeConsole } from '@stone-js/node-cli-adapter';
@NodeConsole({
alias: 'NodeConsole',
})
class App {
// Your application logic here
}