UNPKG

@pulzar/core

Version:

Next-generation Node.js framework for ultra-fast web applications with zero-reflection DI, GraphQL, WebSockets, events, and edge runtime support

12 lines 533 B
import cors, { CorsOptions } from "cors"; export declare function createCorsMiddleware(options?: CorsOptions): (req: cors.CorsRequest, res: { statusCode?: number | undefined; setHeader(key: string, value: string): any; end(): any; }, next: (err?: any) => any) => void; export declare const corsMiddleware: (req: cors.CorsRequest, res: { statusCode?: number | undefined; setHeader(key: string, value: string): any; end(): any; }, next: (err?: any) => any) => void; //# sourceMappingURL=cors.middleware.d.ts.map