@types/range-parser
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -7,7 +7,7 @@ // Type definitions for range-parser 1.2 | ||
/** | ||
* Returns `-1` when unsatisfiable and `-2` when syntactically invalid. | ||
* | ||
* When ranges are returned, the array has a "type" property which is the type of | ||
* range that is required (most commonly, "bytes"). Each array element is an object | ||
* with a "start" and "end" property for the portion of the range. | ||
* | ||
* @returns `-1` when unsatisfiable and `-2` when syntactically invalid, ranges otherwise. | ||
*/ | ||
@@ -31,8 +31,7 @@ declare function RangeParser(size: number, str: string, options?: RangeParser.Options): RangeParser.Result | RangeParser.Ranges; | ||
} | ||
const enum Result { | ||
invaild = -2, | ||
unsatisifiable = -1, | ||
} | ||
type ResultUnsatisfiable = -1; | ||
type ResultInvalid = -2; | ||
type Result = ResultUnsatisfiable | ResultInvalid; | ||
} | ||
export = RangeParser; |
{ | ||
"name": "@types/range-parser", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "TypeScript definitions for range-parser", | ||
@@ -14,2 +14,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
@@ -21,4 +22,4 @@ "type": "git", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "9aa07423616e63016ffbf0e487540e74ec37bb06827861d502a5a3653e8831e9", | ||
"typesPublisherContentHash": "71bf3049d2d484657017f768fe0c54c4e9f03ee340b5a62a56523455925a00ae", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 05 Jun 2018 00:03:07 GMT | ||
* Last updated: Fri, 07 Dec 2018 19:21:52 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
Sorry, the diff of this file is not supported yet
3565
32