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.0.21-alpha
to
0.0.22-alpha
+41
-42
index.d.ts

@@ -32,54 +32,53 @@ // Type definitions for PEG.js

declare module "pegjs" {
export type Location = PEG.Location;
export type LocationRange = PEG.LocationRange;
type Location = PEG.Location;
type LocationRange = PEG.LocationRange;
export interface ExpectedItem {
type: string;
value?: string;
description: string;
}
interface ExpectedItem {
type: string;
value?: string;
description: string;
}
export interface PegjsError extends Error {
name: string;
message: string;
location: LocationRange;
found?: any;
expected?: ExpectedItem[];
stack?: any;
}
interface PegjsError extends Error {
name: string;
message: string;
location: LocationRange;
found?: any;
expected?: ExpectedItem[];
stack?: any;
}
export type GrammarError = PegjsError;
export var GrammarError: any;
type GrammarError = PegjsError;
var GrammarError: any;
export interface ParserOptions {
startRule: string;
tracer: any;
}
interface ParserOptions {
startRule: string;
tracer: any;
}
export interface Parser {
parse(input: string, options?:ParserOptions): any;
interface Parser {
parse(input: string, options?:ParserOptions): any;
SyntaxError: any;
}
SyntaxError: any;
}
export interface BuildOptions {
cache?: boolean;
allowedStartRules?: string[];
optimize?: string;
plugins?: any[];
}
interface BuildOptions {
cache?: boolean;
allowedStartRules?: string[];
optimize?: string;
plugins?: any[];
}
export interface OutputBuildOptions extends BuildOptions {
output?: string;
}
interface OutputBuildOptions extends BuildOptions {
output?: string;
}
export function buildParser(grammar: string, options?: BuildOptions): Parser;
export function buildParser(grammar: string, options?: OutputBuildOptions): Parser | string;
function buildParser(grammar: string, options?: BuildOptions): Parser;
function buildParser(grammar: string, options?: OutputBuildOptions): Parser | string;
export namespace parser {
type SyntaxError = PegjsError;
var SyntaxError: any;
}
export as namespace PEG;
namespace parser {
type SyntaxError = PegjsError;
var SyntaxError: any;
}
}
{
"name": "@types/pegjs",
"version": "0.0.21-alpha",
"version": "0.0.22-alpha",
"description": "TypeScript definitions for PEG.js",

@@ -8,2 +8,6 @@ "main": "",

"author": "vvakame <https://github.com/vvakame>, Tobias Kahlert <https://github.com/SrTobi>",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"license": "MIT",

@@ -10,0 +14,0 @@ "typings": "index.d.ts",

@@ -11,4 +11,4 @@ # Installation

Additional Details
* Last updated: Wed, 25 May 2016 04:20:30 GMT
* File structure: OldUMD
* Last updated: Fri, 01 Jul 2016 18:42:31 GMT
* File structure: UMD
* Library Dependencies: none

@@ -15,0 +15,0 @@ * Module Dependencies: none

@@ -13,13 +13,11 @@ {

"sourceBranch": "types-2.0",
"kind": "OldUMD",
"kind": "UMD",
"globals": [
"PEG"
],
"declaredModules": [
"pegjs"
],
"declaredModules": [],
"files": [
"index.d.ts"
],
"contentHash": "aa5640b182a68f071239738948bd9e7d94c9e60620431a0ea72ccf3cd6c4afa4"
"contentHash": "e4680a944ad1a517d37d6b79f32d7ba64fe343dc51a613ba058d93d135f0fd89"
}