1.0.4 • Published 5 months ago
@types/koa-safe-jsonp v1.0.4
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
- Last updated: Sat, 13 Nov 2021 01:31:23 GMT
- Dependencies: @types/koa, @types/jsonp-body
- Global values: none
Credits
These definitions were written by Qingrong Ke.