kuzzle-sdk
Version:
Official Javascript SDK for Kuzzle
14 lines (13 loc) • 512 B
TypeScript
import { ResponsePayload } from "../types/ResponsePayload";
export declare class Deprecation {
private deprecationWarning;
constructor(deprecationWarning: boolean);
/**
* Warn the developer that he is using a deprecated action (disabled if NODE_ENV=production)
*
* @param response Result of a query to the API
*
* @returns Same as response param, just like a middleware
*/
logDeprecation(response: ResponsePayload): ResponsePayload<import("../types").JSONObject>;
}