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