@caphog/sdk
v0.0.1
Published
Analytics for your Capacitor app
Readme
@caphog/sdk
Analytics for your Capacitor app
Install
npm install @caphog/sdk
npx cap syncAPI
initialize(...)
initialize(config: { projectId: string; }) => Promise<void>| Param | Type |
| ------------ | ----------------------------------- |
| config | { projectId: string; } |
logEvent(...)
logEvent(data: { eventName: string; payload?: Record<string, any>; }) => Promise<void>| Param | Type |
| ---------- | ---------------------------------------------------------------------------------------------- |
| data | { eventName: string; payload?: Record<string, any>; } |
Type Aliases
Record
Construct a type with a set of properties K of type T
{ [P in K]: T; }
