0.1.5 • Published 6 months ago
@types/micro-cors v0.1.5
Installation
npm install --save @types/micro-cors
Summary
This package contains type definitions for micro-cors (https://github.com/possibilities/micro-cors#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/micro-cors.
index.d.ts
// Type definitions for micro-cors 0.1
// Project: https://github.com/possibilities/micro-cors#readme
// Definitions by: Callum Denby <https://github.com/CallumDenby>
// ChanYong Moon <https://github.com/moonchanyong>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
import { RequestHandler } from "micro";
interface Options {
maxAge?: number | undefined;
origin?: string | undefined;
allowHeaders?: string[] | undefined;
allowMethods?: string[] | undefined;
exposeHeaders?: string[] | undefined;
allowCredentials?: boolean | undefined;
}
declare function micro_cors(options?: Options): (handler: RequestHandler) => RequestHandler;
export = micro_cors;
Additional Details
- Last updated: Thu, 08 Jul 2021 18:50:48 GMT
- Dependencies: @types/micro
- Global values: none
Credits
These definitions were written by Callum Denby, and ChanYong Moon.