backtrace-js
Version:
Backtrace.io error reporting tool for client-side applications
22 lines (21 loc) • 590 B
TypeScript
/**
* Generate a UUID
*/
export declare function uuid(): string;
/**
* Current unix time in seconds.
*/
export declare function currentTimestamp(millis?: boolean): number;
/**
* Get 'backtrace-guid' from localStorage. Will create and store if not set.
*/
export declare function getBacktraceGUID(): string;
declare type EndpointParameters = {
universe: string | undefined;
token: string | undefined;
};
/**
* Get universe and token from the endpoint.
*/
export declare function getEndpointParams(endpoint: string, token?: string): EndpointParameters | undefined;
export {};