0.1.5 • Published 6 months ago

@types/micro-cors v0.1.5

Weekly downloads
2,425
License
MIT
Repository
github
Last release
6 months ago

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.

0.1.4

7 months ago

0.1.5

6 months ago

0.1.3

1 year ago

0.1.2

3 years ago

0.1.1

4 years ago

0.1.0

6 years ago