@types/msgpack5
Advanced tools
Comparing version
@@ -10,4 +10,4 @@ // Type definitions for msgpack5 v3.4.0 | ||
interface MsgPackOptions { | ||
forceFloat64?: boolean; | ||
compatibilityMode?: boolean; | ||
forceFloat64?: boolean | undefined; | ||
compatibilityMode?: boolean | undefined; | ||
} | ||
@@ -17,3 +17,3 @@ | ||
interface EncodeDecodeOptions { | ||
header?: boolean; | ||
header?: boolean | undefined; | ||
} | ||
@@ -20,0 +20,0 @@ |
{ | ||
"name": "@types/msgpack5", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"description": "TypeScript definitions for msgpack5", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/msgpack5", | ||
"license": "MIT", | ||
@@ -9,13 +10,17 @@ "contributors": [ | ||
"name": "Wonshik Kim", | ||
"url": "https://github.com/wokim" | ||
"url": "https://github.com/wokim", | ||
"githubUsername": "wokim" | ||
}, | ||
{ | ||
"name": "Kei Son", | ||
"url": "https://github.com/heycalmdown" | ||
"url": "https://github.com/heycalmdown", | ||
"githubUsername": "heycalmdown" | ||
} | ||
], | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/msgpack5" | ||
}, | ||
@@ -26,4 +31,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "f0bf05eaafe01536048ef0301c8ffb8c6e324a7988a9aca61c69ccb4e1bba73a", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "dc1d2d30faf6c6aee5ead297f4015afefab240ea6a3b24dddf4d6119e58b3869", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -8,10 +8,51 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/msgpack5 | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/msgpack5. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/msgpack5/index.d.ts) | ||
````ts | ||
// Type definitions for msgpack5 v3.4.0 | ||
// Project: https://github.com/mcollina/msgpack5/ | ||
// Definitions by: Wonshik Kim <https://github.com/wokim>, Kei Son <https://github.com/heycalmdown> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
Additional Details | ||
* Last updated: Mon, 21 Aug 2017 21:59:27 GMT | ||
* Dependencies: stream, bl | ||
import stream = require('stream'); | ||
import bl = require('bl'); | ||
interface MsgPackOptions { | ||
forceFloat64?: boolean | undefined; | ||
compatibilityMode?: boolean | undefined; | ||
} | ||
declare namespace msgpack5 { | ||
interface EncodeDecodeOptions { | ||
header?: boolean | undefined; | ||
} | ||
class Base extends stream.Transform {} | ||
class Encoder extends Base {} | ||
class Decoder extends Base {} | ||
interface MessagePack { | ||
encode(obj: any): bl; | ||
decode(buf: Buffer): any; | ||
decode(buf: bl): any; | ||
register<T>(type: number, $constructor: any, encode: (obj: T) => Buffer, decode: (data: Buffer) => T): MessagePack; | ||
registerEncoder<T>(check: (obj: T) => boolean, encode: (obj: T) => Buffer): MessagePack; | ||
registerDecoder(type: number, decode: (data: Buffer) => any): MessagePack; | ||
encoder(opts?: EncodeDecodeOptions): Encoder; | ||
decoder(opts?: EncodeDecodeOptions): Decoder; | ||
} | ||
} | ||
declare function msgpack5(opts?: MsgPackOptions): msgpack5.MessagePack; | ||
export = msgpack5; | ||
```` | ||
### Additional Details | ||
* Last updated: Thu, 08 Jul 2021 18:51:02 GMT | ||
* Dependencies: [@types/bl](https://npmjs.com/package/@types/bl) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Wonshik Kim <https://github.com/wokim>, Kei Son <https://github.com/heycalmdown>. | ||
These definitions were written by [Wonshik Kim](https://github.com/wokim), and [Kei Son](https://github.com/heycalmdown). |
Sorry, the diff of this file is not supported yet
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5294
46.04%0
-100%58
241.18%