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
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: @types/jsonp-body, @types/koa
Credits
These definitions were written by Qingrong Ke.