UNPKG

springboot-express

Version:

express-spring-boot

29 lines (28 loc) 1.17 kB
import * as express from "express"; import { MiddleWare } from "./MiddleWare"; import { flombok } from "lib-utils-ts/src/flombok"; import { List, MapType } from "lib-utils-ts/src/Interface"; import { Cookie } from "lib-utils-ts/src/net/Cookie"; import { Spring } from "./Spring"; export interface ExpressSpringApplicationImpl { getApp(): express.Application; getMiddleWare(): MiddleWare; loadProperties(path: string): ExpressSpringApplicationImpl; setMockDefaultUserAccess(level: Spring.AUTH_LEVEL): ExpressSpringApplicationImpl; config(): ExpressSpringApplicationImpl; initPages(): ExpressSpringApplicationImpl; sslProtocol(): void; listen(): void; } export interface SpringApplication { getApp(): express.Application; init(pages_directory: string): SpringApplication; } export interface SpringbootReqImpl { getType: flombok.getNumberFunc; setType: flombok.setNumberFunc; getCookie: flombok.accessorGetFunc<List<Cookie>>; setCookie: flombok.accessorSetFunc<List<Cookie>>; getJwtToken: flombok.accessorGetFunc<MapType<string, Object>>; setJwtToken: flombok.accessorSetFunc<MapType<string, Object>>; }