I wonder about any available typings for cloudboost.io https://github.com/CloudBoost/JavaScriptSDK. I have no experience with writing typings for existing js modules. I was trying to prepare any dumbest d.ts but with no success. i.e. using ionic2 and npm install cloudboost
(also currently its required to separately npm install fs
) I was trying to use cloudboost.d.ts
like.
declare module "cloudboost" {}
or
declare var CB: any;
declare module "cloudboost" {
export var CB: any;
}
the result is strange as cloudboost
is included to ionic2 build (using it's webpack config) however when using i.e.
import * as CB from "cloudboost";
or similar import
variants gives in return CB
value of some socket.io object even if the inner webpack call seems to refer to proper cloudboost
code. So even any
dumb object would satisfy me for the beginning.