@types/moo
Advanced tools
+12
-3
@@ -5,2 +5,3 @@ // Type definitions for moo 0.5 | ||
| // Jörg Vehlow <https://github.com/MofX> | ||
| // Martien Oranje <https://github.com/moranje> | ||
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -13,9 +14,17 @@ | ||
| */ | ||
| export const error: { error: true }; | ||
| export interface ErrorRule { | ||
| error: true; | ||
| } | ||
| export const error: ErrorRule; | ||
| /** | ||
| * Reserved token for indicating a fallback rule. | ||
| */ | ||
| export const fallback: { fallback: true }; | ||
| export interface FallbackRule { | ||
| fallback: true; | ||
| } | ||
| export const fallback: FallbackRule; | ||
| export type TypeMapper = (x: string) => string; | ||
@@ -66,3 +75,3 @@ | ||
| export interface Rules { | ||
| [x: string]: RegExp | string | string[] | Rule | Rule[]; | ||
| [x: string]: RegExp | string | string[] | Rule | Rule[] | ErrorRule | FallbackRule; | ||
| } | ||
@@ -69,0 +78,0 @@ |
+11
-5
| { | ||
| "name": "@types/moo", | ||
| "version": "0.5.0", | ||
| "version": "0.5.1", | ||
| "description": "TypeScript definitions for moo", | ||
@@ -16,14 +16,20 @@ "license": "MIT", | ||
| "githubUsername": "MofX" | ||
| }, | ||
| { | ||
| "name": "Martien Oranje", | ||
| "url": "https://github.com/moranje", | ||
| "githubUsername": "moranje" | ||
| } | ||
| ], | ||
| "main": "", | ||
| "types": "index", | ||
| "types": "index.d.ts", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
| "directory": "types/moo" | ||
| }, | ||
| "scripts": {}, | ||
| "dependencies": {}, | ||
| "typesPublisherContentHash": "4cd73493e6d066d106dbed9a705eb4d866c4d230cad64daa256009bf8f5b2d05", | ||
| "typeScriptVersion": "2.0" | ||
| "typesPublisherContentHash": "810df6b659f63b19ecdc0515eecd83333784205081d9e9c186b0aef57ab4704d", | ||
| "typeScriptVersion": "2.8" | ||
| } |
+6
-6
@@ -5,13 +5,13 @@ # Installation | ||
| # Summary | ||
| This package contains type definitions for moo ( https://github.com/tjvr/moo#readme ). | ||
| This package contains type definitions for moo (https://github.com/tjvr/moo#readme). | ||
| # Details | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/moo | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/moo. | ||
| Additional Details | ||
| * Last updated: Wed, 30 Jan 2019 18:47:32 GMT | ||
| ### Additional Details | ||
| * Last updated: Tue, 03 Dec 2019 03:41:21 GMT | ||
| * Dependencies: none | ||
| * Global values: moo | ||
| * Global values: `moo` | ||
| # Credits | ||
| These definitions were written by Nikita Litvin <https://github.com/deltaidea>, Jörg Vehlow <https://github.com/MofX>. | ||
| These definitions were written by Nikita Litvin (https://github.com/deltaidea), Jörg Vehlow (https://github.com/MofX), and Martien Oranje (https://github.com/moranje). |
6762
6.61%127
5.83%