first
This commit is contained in:
18
safekiso-server/node_modules/snyk/dist/lib/analytics/index.d.ts
generated
vendored
Normal file
18
safekiso-server/node_modules/snyk/dist/lib/analytics/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import * as needle from 'needle';
|
||||
/**
|
||||
*
|
||||
* @param data the data to merge into that data which has been staged thus far (with the {@link add} function)
|
||||
* and then sent to the backend.
|
||||
*/
|
||||
export declare function addDataAndSend(data: any): Promise<void | {
|
||||
res: needle.NeedleResponse;
|
||||
body: any;
|
||||
}>;
|
||||
export declare function allowAnalytics(): boolean;
|
||||
/**
|
||||
* Adds a key-value pair to the analytics data `metadata` field. This doesn't send the analytics, just stages it for
|
||||
* sending later (via the {@link addDataAndSend} function).
|
||||
* @param key
|
||||
* @param value
|
||||
*/
|
||||
export declare function add(key: string, value: unknown): void;
|
||||
Reference in New Issue
Block a user