Repository URL to install this package:
|
Version:
0.0.15 ▾
|
import { Logger } from 'pino';
import { ComponentType } from 'react';
import { Request as ExpressRequest, Response, Response as ExpressResponse, NextFunction } from 'express';
export interface OneUrl {
full: string;
host: string;
}
export interface Request extends ExpressRequest {
SHOULD_CACHE_SSR?: boolean;
oneUrl: OneUrl;
cachedHashedPath?: string;
IS_COMPAT?: boolean;
log: Logger;
}
export { Request as ExpressRequest, ExpressResponse, NextFunction };
export interface ServerConfigType extends Map<string, any> {
get(key: 'App'): ComponentType;
set(key: 'App', value: ComponentType): this;
get(key: 'client'): any;
set(key: 'client', value: any): this;
get(key: string): any;
set(key: string, value: any): this;
}
export interface ServerConfigObjType {
App: ComponentType;
client: any;
}
export declare type ServerConfigKeyType = 'App' | 'client';
export { Response };