1.0.4 • Published 5 months ago

@types/koa-safe-jsonp v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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

// Type definitions for koa-safe-jsonp 1.0
// Project: https://github.com/koajs/koa-safe-jsonp
// Definitions by: Qingrong Ke <https://github.com/keqingrong>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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

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.

1.0.4

5 months ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.3

2 years ago

1.0.0

4 years ago