@types/moo
Advanced tools
Comparing version 0.5.4 to 0.5.5
@@ -37,3 +37,3 @@ // Type definitions for moo 0.5 | ||
export interface Rule { | ||
match?: RegExp | string | string[]; | ||
match?: RegExp | string | string[] | undefined; | ||
/** | ||
@@ -44,19 +44,19 @@ * Moo tracks detailed information about the input for you. | ||
*/ | ||
lineBreaks?: boolean; | ||
lineBreaks?: boolean | undefined; | ||
/** | ||
* Moves the lexer to a new state, and pushes the old state onto the stack. | ||
*/ | ||
push?: string; | ||
push?: string | undefined; | ||
/** | ||
* Returns to a previous state, by removing one or more states from the stack. | ||
*/ | ||
pop?: number; | ||
pop?: number | undefined; | ||
/** | ||
* Moves to a new state, but does not affect the stack. | ||
*/ | ||
next?: string; | ||
next?: string | undefined; | ||
/** | ||
* You can have a token type that both matches tokens and contains error values. | ||
*/ | ||
error?: true; | ||
error?: true | undefined; | ||
/** | ||
@@ -66,3 +66,3 @@ * Moo doesn't allow capturing groups, but you can supply a transform function, value(), | ||
*/ | ||
value?: (x: string) => string; | ||
value?: ((x: string) => string) | undefined; | ||
@@ -73,3 +73,3 @@ /** | ||
*/ | ||
type?: TypeMapper; | ||
type?: TypeMapper | undefined; | ||
} | ||
@@ -128,3 +128,3 @@ export interface Rules { | ||
*/ | ||
type?: string; | ||
type?: string | undefined; | ||
/** | ||
@@ -131,0 +131,0 @@ * The match contents. |
{ | ||
"name": "@types/moo", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"description": "TypeScript definitions for moo", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/moo", | ||
"license": "MIT", | ||
@@ -32,4 +33,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "5f834078bc825a384bd53827637572126f8a9146c3aef8221efcad5f0cfdc387", | ||
"typeScriptVersion": "3.4" | ||
"typesPublisherContentHash": "dc25097389869ef3471651770be359df4888c00fdd07297f8ff3ec2266c020f0", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 19 Feb 2021 17:58:40 GMT | ||
* Last updated: Thu, 08 Jul 2021 18:50:58 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `moo` |
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
7237
1