/** * Hilight user code * * e.g. * at BackendController._add (/home/kuzzle/lib/core/application/backend.ts:261:28) * at BackendController.register (/home/kuzzle/lib/core/application/backend.ts:187:10) * >>>> at registerFoo (/home/aschen/projets/app/test.ts:12:18) * >>>> at init (/home/aschen/projets/app/test.ts:8:3) * at Module._compile (internal/modules/cjs/loader.js:1133:30) */ export function hilightUserCode(line: any): any; /** * utility method: must be invoked by all protocols to remove stack traces * from payloads before sending them * @param {Error|Object} data - expected: plain error object or serialized * request response * @returns {*} return the data minus the stack trace */ export function removeStacktrace(data: Error | any): any;