core/lib/tern_from_ts/defs/intercomjs.json
2017-05-14 13:22:31 +02:00

22 lines
549 B
JSON

{
"intercom": {
"Intercom": {
"emit": "fn(name: string, message?: ?)",
"on": "fn(name: string, fn: Function)",
"off": "fn(name: string, fn: Function)",
"once": "fn(key: string, fn: Function, ttl?: number)",
"bind": "fn(socket: ?, options?: intercom.SocketBindingOptions)"
},
"SocketBindingOptions": {
"send": "?",
"receive": "?"
}
},
"IntercomStatic": {
"getInstance": "fn() -> intercom.Intercom",
"destroy": "fn()"
},
"Intercom": "IntercomStatic",
"!name": "intercom"
}