mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Hide static fields and make CORS a pure function
This commit is contained in:
Vendored
+7
-10
@@ -595,16 +595,13 @@ export function auditLogger(options: { log: any }): (req: Request, res: Response
|
||||
export function fullResponse(): RequestHandler;
|
||||
// tslint:disable-next-line no-var
|
||||
export var defaultResponseHeaders: any;
|
||||
export const CORS: {
|
||||
(cors?: {
|
||||
origins?: string[];
|
||||
credentials?: boolean;
|
||||
headers?: string[];
|
||||
}): RequestHandler;
|
||||
origins: string[];
|
||||
ALLOW_HEADERS: string[];
|
||||
credentials: boolean;
|
||||
};
|
||||
|
||||
export function CORS(options?: CORSOptions): RequestHandler;
|
||||
export interface CORSOptions {
|
||||
origins?: string[];
|
||||
credentials?: boolean;
|
||||
headers?: string[];
|
||||
}
|
||||
|
||||
export const pre: {
|
||||
pause(): RequestHandler;
|
||||
|
||||
Reference in New Issue
Block a user