@types/micro-cors
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

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

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: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/micro

Credits

These definitions were written by Callum Denby, and ChanYong Moon.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.312,048ts4.2
0.1.312,048ts4.3
0.1.312,048ts4.4
0.1.57,388ts5.8
0.1.57,388ts5.7
0.1.57,388latest
0.1.57,388ts4.5
0.1.57,388ts4.6
0.1.57,388ts4.7
0.1.57,388ts4.8
0.1.57,388ts4.9
0.1.57,388ts5.0
0.1.57,388ts5.1
0.1.57,388ts5.2
0.1.57,388ts5.3
0.1.57,388ts5.4
0.1.57,388ts5.5
0.1.57,388ts5.6
0.1.57,388ts5.9
0.1.23,733ts3.6
0.1.23,733ts3.7
0.1.23,733ts3.8
0.1.23,733ts3.9
0.1.23,733ts4.0
0.1.23,733ts4.1
0.1.168ts2.9
0.1.168ts3.0
0.1.168ts3.1
0.1.168ts3.2
0.1.168ts3.3
0.1.168ts3.4
0.1.168ts3.5
0.1.020ts2.2
0.1.020ts2.3
0.1.020ts2.4
0.1.020ts2.5
0.1.020ts2.6
0.1.020ts2.7
0.1.020ts2.8

Version History

VersionDownloads (Last 7 Days)Published
0.1.57,388
0.1.43
0.1.312,048
0.1.23,733
0.1.168
0.1.020

Package Sidebar

Install

npm i @types/micro-cors

Weekly Downloads

23,260

Version

0.1.5

License

MIT

Unpacked Size

3.69 kB

Total Files

5

Last publish

Collaborators

  • types