import { Context } from '@eggjs/core'; export default class JSONPContext extends Context { /** * detect if response should be jsonp */ get acceptJSONP(): boolean; /** * JSONP wrap body function * Set jsonp response wrap function, other plugin can use it. * If not necessary, please don't use this method in your application code. * @param {Object} body response body * @private */ createJsonpBody(body: any): void; }