Function: StoneApp()
Function: StoneApp()
function StoneApp<T>(options, blueprints): ClassDecorator;
StoneApp decorator to mark a class as the main application entry point.
This decorator is useful for customizing classes that should be treated as the primary entry point for the Stone.js framework. It allows for configuring the main application settings via the provided options.
Type Parameters
T
T
extends ClassType
= ClassType
Parameters
options
StoneAppOptions
= {}
The configuration options for the application, based on StoneOptions.
blueprints
( | StoneBlueprint
<IncomingEvent
, OutgoingResponse
> | Record
<string
, any
>)[] = []
Returns
ClassDecorator
A decorator function to set metadata on the target class.
Example
@StoneApp({ name: 'MyApplication', env: Environment.Development })
class MyApp {
// Application logic here.
}