jsdoc-type-pratt-parser
Advanced tools
Comparing version 2.2.3 to 2.2.4
@@ -14,3 +14,3 @@ import 'mocha'; | ||
*/ | ||
modes: ParseMode[]; | ||
modes?: ParseMode[]; | ||
jtp?: { | ||
@@ -27,2 +27,6 @@ [K in JtpMode]: CompareMode; | ||
expected?: RootResult; | ||
error?: string; | ||
errors?: { | ||
[K in ParseMode]?: string; | ||
}; | ||
/** | ||
@@ -29,0 +33,0 @@ * The expected parse results objects for different modes. If a mode is included in `modes` and as a key of |
{ | ||
"name": "jsdoc-type-pratt-parser", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -69,3 +69,3 @@ import { composeParslet, ParsletFunction } from './Parslet' | ||
if (p.type === 'JsdocTypeKeyValue' && (!allowNamedParameters.includes(p.key) || p.meta.quote !== undefined)) { | ||
throw new Error(`only allowed named parameters are ${allowNamedParameters.join(',')} but got ${p.type}`) | ||
throw new Error(`only allowed named parameters are ${allowNamedParameters.join(', ')} but got ${p.type}`) | ||
} | ||
@@ -72,0 +72,0 @@ } |
@@ -86,3 +86,3 @@ import { ParsletFunction } from './Parslet' | ||
} else { | ||
throw new UnexpectedTypeError(parsed, 'Type \'JsdocTypeSpecialNamePath\' is only allowed witch specialType \'event\'') | ||
throw new UnexpectedTypeError(parsed, 'Type \'JsdocTypeSpecialNamePath\' is only allowed with specialType \'event\'') | ||
} | ||
@@ -89,0 +89,0 @@ break |
Sorry, the diff of this file is too big to display
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
225086
6279