mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Make CORS a variable again
This fixes the 'Property 'CORS' does not exist' problem.
This commit is contained in:
parent
9f06aa6f1d
commit
43fd13d225
4
types/restify/index.d.ts
vendored
4
types/restify/index.d.ts
vendored
@ -595,7 +595,7 @@ 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 interface CORS {
|
||||
export const CORS: {
|
||||
(cors?: {
|
||||
origins?: string[];
|
||||
credentials?: boolean;
|
||||
@ -604,7 +604,7 @@ export interface CORS {
|
||||
origins: string[];
|
||||
ALLOW_HEADERS: string[];
|
||||
credentials: boolean;
|
||||
}
|
||||
};
|
||||
|
||||
export const pre: {
|
||||
pause(): RequestHandler;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user