@types/binary-parser
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -142,18 +142,18 @@ // Type definitions for binary-parser 1.5 | ||
interface Options { | ||
formatter?: ((value: Data) => any); | ||
assert?: string | number | ((value: Data) => boolean); | ||
formatter?: ((value: Data) => any) | undefined; | ||
assert?: string | number | ((value: Data) => boolean) | undefined; | ||
} | ||
interface StringOptions extends Options { | ||
encoding?: string; | ||
length?: number | string | ((this: Parser<any>) => number); | ||
zeroTerminated?: boolean; | ||
greedy?: boolean; | ||
stripNull?: boolean; | ||
encoding?: string | undefined; | ||
length?: number | string | ((this: Parser<any>) => number) | undefined; | ||
zeroTerminated?: boolean | undefined; | ||
greedy?: boolean | undefined; | ||
stripNull?: boolean | undefined; | ||
} | ||
interface BufferOptions extends Options { | ||
clone?: boolean; | ||
length?: number | string | ((this: Parser<any>) => number); | ||
readUntil?: string | ((item: number, buffer: Buffer) => boolean); | ||
clone?: boolean | undefined; | ||
length?: number | string | ((this: Parser<any>) => number) | undefined; | ||
readUntil?: string | ((item: number, buffer: Buffer) => boolean) | undefined; | ||
} | ||
@@ -163,5 +163,5 @@ | ||
type: string | Parser<any>; | ||
length?: number | string | ((this: Parser<any>) => number); | ||
lengthInBytes?: number | string | ((this: Parser<any>) => number); | ||
readUntil?: string | ((item: number, buffer: Buffer) => boolean); | ||
length?: number | string | ((this: Parser<any>) => number) | undefined; | ||
lengthInBytes?: number | string | ((this: Parser<any>) => number) | undefined; | ||
readUntil?: string | ((item: number, buffer: Buffer) => boolean) | undefined; | ||
} | ||
@@ -172,3 +172,3 @@ | ||
choices: { [item: number]: Parser<any> | string }; | ||
defaultChoice?: Parser<any> | string; | ||
defaultChoice?: Parser<any> | string | undefined; | ||
} | ||
@@ -175,0 +175,0 @@ |
{ | ||
"name": "@types/binary-parser", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "TypeScript definitions for binary-parser", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/binary-parser", | ||
"license": "MIT", | ||
@@ -39,4 +40,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "b03961d6b34d6c0206238a6366651e5314cfaa96b8f08f53e684d36e300a748f", | ||
"typeScriptVersion": "3.2" | ||
"typesPublisherContentHash": "976c62c312195895a6566dc53c43f25d0ad3e073e833de83ca3403443343b252", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 05 Feb 2020 17:21:20 GMT | ||
* Last updated: Wed, 07 Jul 2021 21:44:57 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Benjamin Riggs (https://github.com/riggs), Dolan Miu (https://github.com/dolanmiu), Yu Shimura (https://github.com/yuhr), and John Mark Gabriel Caguicla (https://github.com/caguiclajmg). | ||
These definitions were written by [Benjamin Riggs](https://github.com/riggs), [Dolan Miu](https://github.com/dolanmiu), [Yu Shimura](https://github.com/yuhr), and [John Mark Gabriel Caguicla](https://github.com/caguiclajmg). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
12596
0