Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@types/pegjs

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/pegjs - npm Package Compare versions

Comparing version
0.10.3
to
0.10.4
+15
-16
pegjs/index.d.ts

@@ -7,3 +7,3 @@ // Type definitions for PEG.js v0.10.0

declare namespace PEG {
function parse(input:string):any;
function parse(input: string): any;

@@ -17,4 +17,4 @@ interface Location {

interface LocationRange {
start: Location,
end: Location
start: Location;
end: Location;
}

@@ -27,6 +27,6 @@

location: LocationRange;
expected:any[];
found:any;
name:string;
message:string;
expected: any[];
found: any;
name: string;
message: string;
}

@@ -63,3 +63,3 @@ }

export interface Parser {
parse(input: string, options?:ParserOptions): any;
parse(input: string, options?: ParserOptions): any;

@@ -79,3 +79,3 @@ SyntaxError: any;

/** makes the parser trace its progress (default: `false`) */
trace?: boolean | undefined
trace?: boolean | undefined;
}

@@ -85,3 +85,3 @@

/** if set to `"parser"`, the method will return generated parser object; if set to `"source"`, it will return parser source code as a string (default: `"parser"`) */
output?: "parser" | undefined
output?: "parser" | undefined;
}

@@ -95,3 +95,3 @@

/** parser dependencies, the value is an object which maps variables used to access the dependencies in the parser to module IDs used to load them; valid only when `format` is set to `"amd"`, `"commonjs"`, or `"umd"` (default: `{}`) */
dependencies?: any
dependencies?: any;
}

@@ -105,5 +105,5 @@

/** parser dependencies, the value is an object which maps variables used to access the dependencies in the parser to module IDs used to load them; valid only when `format` is set to `"amd"`, `"commonjs"`, or `"umd"` (default: `{}`) */
dependencies?: any
dependencies?: any;
/** name of a global variable into which the parser object is assigned to when no module loader is detected; valid only when `format` is set to `"globals"` or `"umd"` (default: `null`) */
exportVar?: any
exportVar?: any;
}

@@ -117,3 +117,3 @@

/** name of a global variable into which the parser object is assigned to when no module loader is detected; valid only when `format` is set to `"globals"` or `"umd"` (default: `null`) */
exportVar?: any
exportVar?: any;
}

@@ -125,3 +125,3 @@

/** format of the genreated parser (`"amd"`, `"bare"`, `"commonjs"`, `"globals"`, or `"umd"`); valid only when `output` is set to `"source"` (default: `"bare"`) */
format?: "bare" | undefined
format?: "bare" | undefined;
}

@@ -145,2 +145,1 @@

export as namespace PEG;
{
"name": "@types/pegjs",
"version": "0.10.3",
"version": "0.10.4",
"description": "TypeScript definitions for PEG.js",

@@ -33,4 +33,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pegjs",

"dependencies": {},
"typesPublisherContentHash": "4054fc2d4e2d0f8e5097b6eacda8bb46c329298991a9a54387a66d7d681a2f5f",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "aa61fc39eedc256ecec6fa1711914e3d400ca6db3097665a5176be24aeb17447",
"typeScriptVersion": "4.5"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 08 Jul 2021 20:19:31 GMT
* Last updated: Sun, 24 Sep 2023 06:37:28 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `PEG`