Open moonman239 opened 9 months ago
Hello,
I noticed there were no type declarations for TypeScript, so I had to kind of add my own. It'd be nice to have some types, please.
I'll add more types as I go along, but for now, here's a start:
interface FacebookResponse { error: any } type FacebookAPICallback = (res:FacebookResponse)=>void; declare module 'fb' { export function api(path?:string,method?:string="GET",params?:object,callback?:FacebookAPICallback): void; }
Hello,
I noticed there were no type declarations for TypeScript, so I had to kind of add my own. It'd be nice to have some types, please.
I'll add more types as I go along, but for now, here's a start: