Open jon-moreira opened 2 years ago
You just need to create a definition file (*.d.ts
) with the following content (or update the existing one) and make sure that it's included in your project:
declare module "react-native-zohodesk-portal-sdk"
To have better TS support you can also extend it with proper objects and functions that you can get from library files
declare module "react-native-zohodesk-portal-sdk" {
const ZohoDeskPortalSDK = {
initialise: (orgId: string, appId: string, dc: string) => {
//
},
}
const ZDPortalHome = {
show: () => {
//
},
}
export { ZohoDeskPortalSDK, ZDPortalHome }
}
And if I try to install the package ...