@types/koa-safe-jsonp
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Installation

npm install --save @types/koa-safe-jsonp

Summary

This package contains type definitions for koa-safe-jsonp (https://github.com/koajs/koa-safe-jsonp).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-safe-jsonp.

index.d.ts

import * as jsonpBody from "jsonp-body";
import * as Koa from "koa";

declare namespace jsonp {
    interface Options extends jsonpBody.Options {
        /** callback name, default to `callback` */
        callback?: string;
    }
}

declare function jsonp(app: Koa, options?: jsonp.Options): Koa.Middleware;

export = jsonp;

Additional Details

Credits

These definitions were written by Qingrong Ke.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/koa-safe-jsonp

Weekly Downloads

15

Version

1.0.3

License

MIT

Unpacked Size

3.41 kB

Total Files

5

Last publish

Collaborators

  • types