@types/msgpack
Advanced tools
+64
-59
@@ -6,79 +6,84 @@ // Type definitions for msgpack.js - MessagePack JavaScript Implementation | ||
| interface MsgPackStatic { | ||
| /** | ||
| * @param data string or ByteArray. | ||
| * @param toString return string value if true. | ||
| * | ||
| * @return string or ByteArray or false. pack failed if false. | ||
| */ | ||
| pack(data: any, toString?: boolean): any; | ||
| declare namespace msgpack { | ||
| interface MsgPackStatic { | ||
| /** | ||
| * @param data string or ByteArray. | ||
| * @param toString return string value if true. | ||
| * | ||
| * @return string or ByteArray or false. pack failed if false. | ||
| */ | ||
| pack(data: any, toString?: boolean): any; | ||
| /** | ||
| * @param data string or ByteArray. | ||
| * | ||
| * @return string or ByteArray or undefined. unpack failed if undefined. | ||
| */ | ||
| unpack(data: any): any; | ||
| /** | ||
| * @param data string or ByteArray. | ||
| * | ||
| * @return string or ByteArray or undefined. unpack failed if undefined. | ||
| */ | ||
| unpack(data: any): any; | ||
| worker: string; | ||
| worker: string; | ||
| upload(url: string, option: MsgPackUploadOption, callback: MsgPackUploadCallback): void; | ||
| upload(url: string, option: MsgPackUploadOption, callback: MsgPackUploadCallback): void; | ||
| download(url: string, option: MsgPackDownloadOption, callback: MsgPackDownloadCallback): void; | ||
| } | ||
| download(url: string, option: MsgPackDownloadOption, callback: MsgPackDownloadCallback): void; | ||
| } | ||
| interface MsgPackUploadOption { | ||
| /** | ||
| * string or ByteArray | ||
| */ | ||
| data: any; | ||
| interface MsgPackUploadOption { | ||
| /** | ||
| * string or ByteArray | ||
| */ | ||
| data: any; | ||
| /** | ||
| * use WebWorker if true. | ||
| */ | ||
| worker?: boolean; | ||
| /** | ||
| * use WebWorker if true. | ||
| */ | ||
| worker?: boolean; | ||
| /** | ||
| * timeout sec. | ||
| */ | ||
| timeout?: number; | ||
| /** | ||
| * timeout sec. | ||
| */ | ||
| timeout?: number; | ||
| before?: (xhr: XMLHttpRequest, option: MsgPackUploadOption) => void; | ||
| before?: (xhr: XMLHttpRequest, option: MsgPackUploadOption) => void; | ||
| after?: (xhr: XMLHttpRequest, option: MsgPackUploadOption, result: MsgPackCallbackResult) => void; | ||
| } | ||
| after?: (xhr: XMLHttpRequest, option: MsgPackUploadOption, result: MsgPackCallbackResult) => void; | ||
| } | ||
| interface MsgPackUploadCallback { | ||
| (data: string, option: MsgPackUploadOption, result: MsgPackCallbackResult): void; | ||
| } | ||
| interface MsgPackUploadCallback { | ||
| (data: string, option: MsgPackUploadOption, result: MsgPackCallbackResult): void; | ||
| } | ||
| interface MsgPackDownloadOption { | ||
| /** | ||
| * use WebWorker if true. | ||
| */ | ||
| worker?: boolean; | ||
| interface MsgPackDownloadOption { | ||
| /** | ||
| * use WebWorker if true. | ||
| */ | ||
| worker?: boolean; | ||
| /** | ||
| * timeout sec. | ||
| */ | ||
| timeout?: number; | ||
| /** | ||
| * timeout sec. | ||
| */ | ||
| timeout?: number; | ||
| before?: (xhr: XMLHttpRequest, option: MsgPackDownloadOption) => void; | ||
| before?: (xhr: XMLHttpRequest, option: MsgPackDownloadOption) => void; | ||
| after?: (xhr: XMLHttpRequest, option: MsgPackDownloadOption, result: MsgPackCallbackResult) => void; | ||
| } | ||
| after?: (xhr: XMLHttpRequest, option: MsgPackDownloadOption, result: MsgPackCallbackResult) => void; | ||
| } | ||
| interface MsgPackDownloadCallback { | ||
| /** | ||
| * @param data string or ByteArray | ||
| */ | ||
| (data: any, option: MsgPackDownloadCallback, result: MsgPackCallbackResult): void; | ||
| } | ||
| interface MsgPackDownloadCallback { | ||
| /** | ||
| * @param data string or ByteArray | ||
| */ | ||
| (data: any, option: MsgPackDownloadCallback, result: MsgPackCallbackResult): void; | ||
| } | ||
| interface MsgPackCallbackResult { | ||
| status: number; | ||
| interface MsgPackCallbackResult { | ||
| status: number; | ||
| ok: boolean; | ||
| ok: boolean; | ||
| } | ||
| } | ||
| declare var msgpack: MsgPackStatic; | ||
| declare var msgpack: msgpack.MsgPackStatic; | ||
| export = msgpack; | ||
| export as namespace msgpack; |
+10
-4
| { | ||
| "name": "@types/msgpack", | ||
| "version": "0.0.28", | ||
| "version": "0.0.29", | ||
| "description": "TypeScript definitions for msgpack.js - MessagePack JavaScript Implementation", | ||
| "license": "MIT", | ||
| "author": "Shinya Mochizuki <https://github.com/enrapt-mochizuki/>", | ||
| "contributors": [ | ||
| { | ||
| "name": "Shinya Mochizuki", | ||
| "url": "https://github.com/enrapt-mochizuki/" | ||
| } | ||
| ], | ||
| "main": "", | ||
@@ -14,4 +19,5 @@ "repository": { | ||
| "dependencies": {}, | ||
| "typings": "index.d.ts", | ||
| "typesPublisherContentHash": "e6865e71650609be475ce34d34e7c5121fefefc8ce91d377715fc31a8a78a1fb" | ||
| "peerDependencies": {}, | ||
| "typesPublisherContentHash": "358de3a5155b3e84fdb972f149cf7ea1bf80be92d7d7a449f6ab8061f3a8e5ab", | ||
| "typeScriptVersion": "2.0" | ||
| } |
@@ -8,9 +8,7 @@ # Installation | ||
| # Details | ||
| Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/msgpack | ||
| Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/msgpack | ||
| Additional Details | ||
| * Last updated: Mon, 19 Sep 2016 17:28:59 GMT | ||
| * File structure: Global | ||
| * Library Dependencies: none | ||
| * Module Dependencies: none | ||
| * Last updated: Mon, 27 Mar 2017 22:44:53 GMT | ||
| * Dependencies: none | ||
| * Global values: msgpack | ||
@@ -17,0 +15,0 @@ |
| { | ||
| "authors": "Shinya Mochizuki <https://github.com/enrapt-mochizuki/>", | ||
| "definitionFilename": "index.d.ts", | ||
| "libraryDependencies": [], | ||
| "moduleDependencies": [], | ||
| "libraryMajorVersion": "0", | ||
| "libraryMinorVersion": "0", | ||
| "libraryName": "msgpack.js - MessagePack JavaScript Implementation", | ||
| "typingsPackageName": "msgpack", | ||
| "projectName": "https://github.com/uupaa/msgpack.js/", | ||
| "sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped", | ||
| "sourceBranch": "types-2.0", | ||
| "kind": "Global", | ||
| "globals": [ | ||
| "msgpack" | ||
| ], | ||
| "declaredModules": [], | ||
| "files": [ | ||
| "index.d.ts" | ||
| ], | ||
| "hasPackageJson": false, | ||
| "contentHash": "e6865e71650609be475ce34d34e7c5121fefefc8ce91d377715fc31a8a78a1fb" | ||
| } |
3480
-11.29%3
-25%68
-20.93%17
-10.53%