Skip to content

Commit b4f3ae3

Browse files
authored
types (#478)
1 parent 6089dd7 commit b4f3ae3

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

examples/Angular/countly.d.ts

+22-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
1-
declare module 'countly-sdk-web';
1+
declare module 'countly-sdk-web' {
2+
3+
namespace Countly {
4+
/**
5+
* It initializes the SDK and exposes it to the window object. It should be called before any other SDK methods in sync implementations.
6+
*
7+
* @param {object} config - Configuration object. Determines the SDK behavior. Some essential keys are:
8+
*
9+
* app_key : "app key" from your Countly server application. (MANDATORY!)
10+
*
11+
* url : Your Countly server URL. You may also use your own server URL or IP here. (MANDATORY!)
12+
*
13+
* debug : Enables SDK logs to be printed into the browser console. (default: false)
14+
*
15+
* For the full list of configuration options, see https://support.count.ly/hc/en-us/articles/360037441932-Web-analytics-JavaScript#h_01HABTQ439HZN7Y6A6F07Y6G0K
16+
*/
17+
function init(config: object): void;
18+
}
19+
20+
export default Countly;
21+
}
22+
223
interface Window {
324
Countly: any;
425
}

0 commit comments

Comments
 (0)