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

31 lines
1.0 KiB
Plaintext

{
"MsgPackStatic": {
"pack": "fn(data: ?, toString?: bool) -> ?",
"unpack": "fn(data: ?) -> ?",
"worker": "string",
"upload": "fn(url: string, option: MsgPackUploadOption, callback: MsgPackUploadCallback)",
"download": "fn(url: string, option: MsgPackDownloadOption, callback: MsgPackDownloadCallback)"
},
"MsgPackUploadOption": {
"data": "?",
"worker": "bool",
"timeout": "number",
"before": "fn(xhr: XMLHttpRequest, option: MsgPackUploadOption)",
"after": "fn(xhr: XMLHttpRequest, option: MsgPackUploadOption, result: MsgPackCallbackResult)"
},
"MsgPackUploadCallback": {},
"MsgPackDownloadOption": {
"worker": "bool",
"timeout": "number",
"before": "fn(xhr: XMLHttpRequest, option: MsgPackDownloadOption)",
"after": "fn(xhr: XMLHttpRequest, option: MsgPackDownloadOption, result: MsgPackCallbackResult)"
},
"MsgPackDownloadCallback": {},
"MsgPackCallbackResult": {
"status": "number",
"ok": "bool"
},
"msgpack": "MsgPackStatic",
"!name": "msgpack.d.ts"
}