CleverTap / clevertap-web-sdk

CleverTap Web SDK
https://clevertap.com/
MIT License
14 stars 18 forks source link

Types support for typescript? #35

Open albseb511 opened 3 years ago

albseb511 commented 3 years ago

Do you have a typescript support for this?


declare module "clevertap-web-sdk" {
  export const event: any[];
  export const profile: any[];
  export const account: any[];
  export const onUserLogin: any[];
  export const notifications: any[];
  export const privacy: any[];
  export function init(accountId: string, region?: string, domain?: string);
  export let spa: boolean;
  export function setLogLevel( level: nuumber );
}

i did end up making a temporary one for now

akashvercetti commented 3 years ago

Hi @albseb511, We currently do not have ts support but your suggestion is noted and we'll surely be looking into it for future versions.

albseb511 commented 3 years ago

then keep the issue open? so that its not lost?