@zcodeapp/interfaces
Advanced tools
| export declare enum EControllerMethod { | ||
| GET = "GET", | ||
| POST = "POST", | ||
| PUT = "PUT", | ||
| DELETE = "DELETE", | ||
| PATCH = "PATCH", | ||
| OPTIONS = "OPTIONS", | ||
| HEAD = "HEAD" | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.EControllerMethod = void 0; | ||
| var EControllerMethod; | ||
| (function (EControllerMethod) { | ||
| EControllerMethod["GET"] = "GET"; | ||
| EControllerMethod["POST"] = "POST"; | ||
| EControllerMethod["PUT"] = "PUT"; | ||
| EControllerMethod["DELETE"] = "DELETE"; | ||
| EControllerMethod["PATCH"] = "PATCH"; | ||
| EControllerMethod["OPTIONS"] = "OPTIONS"; | ||
| EControllerMethod["HEAD"] = "HEAD"; | ||
| })(EControllerMethod || (exports.EControllerMethod = EControllerMethod = {})); |
| export interface IController { | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| import { TConstructor } from "../di"; | ||
| import { IController } from "./IController"; | ||
| import { IControllerOptions } from "./IControllerOptions"; | ||
| export interface IControllerConfiguration { | ||
| key: string; | ||
| constructor: TConstructor<IController>; | ||
| options?: IControllerOptions; | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| export interface IControllerInterceptor { | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| import { TConstructor } from "../di"; | ||
| import { IController } from "./IController"; | ||
| import { IControllerConfiguration } from "./IControllerConfiguration"; | ||
| import { IControllerOptions } from "./IControllerOptions"; | ||
| import { IControllerRoute } from "./IControllerRoute"; | ||
| import { IControllerRouteOptions } from "./IControllerRouteOptions"; | ||
| export interface IControllerManager { | ||
| register<T = any>(constructor: TConstructor<T>, options?: IControllerOptions): any; | ||
| getRoutes(): IControllerRoute[]; | ||
| routes(constructor: TConstructor<IController>, propertyName: string, descriptor: PropertyDescriptor, options?: IControllerRouteOptions): void; | ||
| getControllers(): IControllerConfiguration[]; | ||
| reset(): void; | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| export interface IControllerMiddleware { | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| import { TConstructor } from "../di"; | ||
| import { IControllerInterceptor, IControllerMiddleware } from "."; | ||
| export interface IControllerOptions { | ||
| path?: string; | ||
| useControllerRoute?: boolean; | ||
| middlewares?: TConstructor<IControllerMiddleware>[]; | ||
| interceptors?: TConstructor<IControllerInterceptor>[]; | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| import { IControllerRouteOptions } from "./IControllerRouteOptions"; | ||
| export interface IControllerRoute extends IControllerRouteOptions { | ||
| key: string; | ||
| propertyName: string; | ||
| descriptor: PropertyDescriptor; | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| import { TConstructor } from "../di"; | ||
| import { EControllerMethod } from "./EControllerMethod"; | ||
| import { IControllerInterceptor } from "./IControllerInterceptor"; | ||
| import { IControllerMiddleware } from "./IControllerMiddleware"; | ||
| export interface IControllerRouteOptions { | ||
| path?: string; | ||
| method?: EControllerMethod; | ||
| middlewares?: TConstructor<IControllerMiddleware>[]; | ||
| interceptors?: TConstructor<IControllerInterceptor>[]; | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| export * from "./IControllerOptions"; | ||
| export * from "./IControllerMiddleware"; | ||
| export * from "./IControllerInterceptor"; | ||
| export * from "./IControllerConfiguration"; | ||
| export * from "./IController"; | ||
| export * from "./IControllerRoute"; | ||
| export * from "./IControllerRouteOptions"; | ||
| export * from "./EControllerMethod"; | ||
| export * from "./IControllerManager"; |
| "use strict"; | ||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| var desc = Object.getOwnPropertyDescriptor(m, k); | ||
| if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
| desc = { enumerable: true, get: function() { return m[k]; } }; | ||
| } | ||
| Object.defineProperty(o, k2, desc); | ||
| }) : (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| o[k2] = m[k]; | ||
| })); | ||
| var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
| for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| __exportStar(require("./IControllerOptions"), exports); | ||
| __exportStar(require("./IControllerMiddleware"), exports); | ||
| __exportStar(require("./IControllerInterceptor"), exports); | ||
| __exportStar(require("./IControllerConfiguration"), exports); | ||
| __exportStar(require("./IController"), exports); | ||
| __exportStar(require("./IControllerRoute"), exports); | ||
| __exportStar(require("./IControllerRouteOptions"), exports); | ||
| __exportStar(require("./EControllerMethod"), exports); | ||
| __exportStar(require("./IControllerManager"), exports); |
+1
-0
@@ -5,1 +5,2 @@ export * from "./di"; | ||
| export * from "./cache"; | ||
| export * from "./controller"; |
+1
-0
@@ -21,1 +21,2 @@ "use strict"; | ||
| __exportStar(require("./cache"), exports); | ||
| __exportStar(require("./controller"), exports); |
+2
-2
| { | ||
| "name": "@zcodeapp/interfaces", | ||
| "version": "0.3.2", | ||
| "version": "0.4.0", | ||
| "description": "Interfaces for packages", | ||
@@ -28,3 +28,3 @@ "main": "dist/index.js", | ||
| "homepage": "https://github.com/zcodeapp/msexpandable#readme", | ||
| "gitHead": "dd75fea8be136dead8849581b4664ae91b4bf273", | ||
| "gitHead": "03a9de0a2ac0322de62e58cb8d935dd1aee7abdc", | ||
| "devDependencies": { | ||
@@ -31,0 +31,0 @@ "@typescript-eslint/eslint-plugin": "^6.16.0", |
18157
39.29%65
44.44%401
45.29%