node-web-mvc
Version:
node spring mvc
24 lines (23 loc) • 863 B
TypeScript
import { HttpMethodKeys } from '../http/HttpMethod';
declare class CorsOrigin {
value?: string[];
origins?: string[];
originPatterns?: RegExp[];
allowedHeaders?: string[];
exposedHeaders?: string[];
methods?: HttpMethodKeys[];
allowCredentials?: boolean;
allowPrivateNetwork?: boolean;
maxAge?: number;
}
declare const _default: {
(target: Function): any;
(options: string[] | import("../annotations/Target").CreateOptions<typeof CorsOrigin>): {
(target: Function): any;
(target: Object, name: string, descriptor: TypedPropertyDescriptor<any>): any;
};
(target: {
[x: string]: any;
}, propertyKey: string, descriptor: TypedPropertyDescriptor<any>): any;
} & import("../annotations/annotation/type").LinkAnnotationType<typeof CorsOrigin> & typeof CorsOrigin;
export default _default;