-
Notifications
You must be signed in to change notification settings - Fork 1
/
global.d.ts
38 lines (33 loc) · 1.15 KB
/
global.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/// <reference path="./types/node.d.ts" />
/// <reference path="./types/helpers.d.ts" />
/// <reference path="./types/http.d.ts" />
/// <reference path="./types/modules.d.ts" />
/// <reference path="./types/index.d.ts" />
import ControllerClass from "./src/Classes/ControllerClass";
import XpresserRepl from "./src/XpresserRepl";
import {DollarSign, Options} from "./types";
import XpresserRouter from "@xpresser/router";
import InXpresserError from "./src/Errors/InXpresserError";
/**
* Initialize Xpresser
* @param config - Config object or path to config file.
* @param options - Options
* @constructor
*/
declare function init(config: object | string, options?: Options): DollarSign;
/**
* Get Current Xpresser Instance.
* Use instead of global $
* @example
* const $ = global['$'];
* const $ = getInstance();
* @param [instanceId]
*/
declare function getInstance(instanceId?: string): DollarSign;
/**
* Get Xpresser Instance Router.
* @param instanceId
* @returns {XpresserRouter}
*/
declare function getInstanceRouter(instanceId?: string): XpresserRouter;
export {init, getInstance, getInstanceRouter, ControllerClass, XpresserRepl, InXpresserError}