Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@types/msgpack

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/msgpack - npm Package Compare versions

Comparing version
0.0.27
to
0.0.28
+83
msgpack/index.d.ts
// Type definitions for msgpack.js - MessagePack JavaScript Implementation
// Project: https://github.com/uupaa/msgpack.js/
// Definitions by: Shinya Mochizuki <https://github.com/enrapt-mochizuki/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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;
worker: string;
upload(url: string, option: MsgPackUploadOption, callback: MsgPackUploadCallback): void;
download(url: string, option: MsgPackDownloadOption, callback: MsgPackDownloadCallback): void;
}
interface MsgPackUploadOption {
/**
* string or ByteArray
*/
data: any;
/**
* use WebWorker if true.
*/
worker?: boolean;
/**
* timeout sec.
*/
timeout?: number;
before?: (xhr: XMLHttpRequest, option: MsgPackUploadOption) => void;
after?: (xhr: XMLHttpRequest, option: MsgPackUploadOption, result: MsgPackCallbackResult) => void;
}
interface MsgPackUploadCallback {
(data: string, option: MsgPackUploadOption, result: MsgPackCallbackResult): void;
}
interface MsgPackDownloadOption {
/**
* use WebWorker if true.
*/
worker?: boolean;
/**
* timeout sec.
*/
timeout?: number;
before?: (xhr: XMLHttpRequest, option: MsgPackDownloadOption) => void;
after?: (xhr: XMLHttpRequest, option: MsgPackDownloadOption, result: MsgPackCallbackResult) => void;
}
interface MsgPackDownloadCallback {
/**
* @param data string or ByteArray
*/
(data: any, option: MsgPackDownloadCallback, result: MsgPackCallbackResult): void;
}
interface MsgPackCallbackResult {
status: number;
ok: boolean;
}
declare var msgpack: MsgPackStatic;
{
"name": "@types/msgpack",
"version": "0.0.28",
"description": "TypeScript definitions for msgpack.js - MessagePack JavaScript Implementation",
"license": "MIT",
"author": "Shinya Mochizuki <https://github.com/enrapt-mochizuki/>",
"main": "",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"dependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "e6865e71650609be475ce34d34e7c5121fefefc8ce91d377715fc31a8a78a1fb"
}
# Installation
> `npm install --save @types/msgpack`
# Summary
This package contains type definitions for msgpack.js - MessagePack JavaScript Implementation (https://github.com/uupaa/msgpack.js/).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/msgpack
Additional Details
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT
* File structure: Global
* Library Dependencies: none
* Module Dependencies: none
* Global values: msgpack
# Credits
These definitions were written by Shinya Mochizuki <https://github.com/enrapt-mochizuki/>.
{
"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"
}
-83
// Type definitions for msgpack.js - MessagePack JavaScript Implementation
// Project: https://github.com/uupaa/msgpack.js/
// Definitions by: Shinya Mochizuki <https://github.com/enrapt-mochizuki/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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;
worker: string;
upload(url: string, option: MsgPackUploadOption, callback: MsgPackUploadCallback): void;
download(url: string, option: MsgPackDownloadOption, callback: MsgPackDownloadCallback): void;
}
interface MsgPackUploadOption {
/**
* string or ByteArray
*/
data: any;
/**
* use WebWorker if true.
*/
worker?: boolean;
/**
* timeout sec.
*/
timeout?: number;
before?: (xhr: XMLHttpRequest, option: MsgPackUploadOption) => void;
after?: (xhr: XMLHttpRequest, option: MsgPackUploadOption, result: MsgPackCallbackResult) => void;
}
interface MsgPackUploadCallback {
(data: string, option: MsgPackUploadOption, result: MsgPackCallbackResult): void;
}
interface MsgPackDownloadOption {
/**
* use WebWorker if true.
*/
worker?: boolean;
/**
* timeout sec.
*/
timeout?: number;
before?: (xhr: XMLHttpRequest, option: MsgPackDownloadOption) => void;
after?: (xhr: XMLHttpRequest, option: MsgPackDownloadOption, result: MsgPackCallbackResult) => void;
}
interface MsgPackDownloadCallback {
/**
* @param data string or ByteArray
*/
(data: any, option: MsgPackDownloadCallback, result: MsgPackCallbackResult): void;
}
interface MsgPackCallbackResult {
status: number;
ok: boolean;
}
declare var msgpack: MsgPackStatic;
{
"name": "@types/msgpack",
"version": "0.0.27",
"description": "TypeScript definitions for msgpack.js - MessagePack JavaScript Implementation",
"main": "",
"scripts": {},
"author": "Shinya Mochizuki <https://github.com/enrapt-mochizuki/>",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"license": "MIT",
"typings": "index.d.ts",
"dependencies": {}
}
# Installation
> `npm install --save @types/msgpack`
# Summary
This package contains type definitions for msgpack.js - MessagePack JavaScript Implementation (https://github.com/uupaa/msgpack.js/).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/msgpack
Additional Details
* Last updated: Thu, 14 Jul 2016 13:52:46 GMT
* File structure: Global
* Library Dependencies: none
* Module Dependencies: none
* Global values: msgpack
# Credits
These definitions were written by Shinya Mochizuki <https://github.com/enrapt-mochizuki/>.
{
"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"
],
"contentHash": "e6865e71650609be475ce34d34e7c5121fefefc8ce91d377715fc31a8a78a1fb"
}