UNPKG

kuzzle-sdk

Version:
14 lines (13 loc) 512 B
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>; }