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.27
to
0.0.28
+83
pegjs/index.d.ts
// Type definitions for PEG.js
// Project: http://pegjs.org/
// Definitions by: vvakame <https://github.com/vvakame>, Tobias Kahlert <https://github.com/SrTobi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace PEG {
function parse(input:string):any;
interface Location {
line: number;
column: number;
offset: number;
}
interface LocationRange {
start: Location,
end: Location
}
class SyntaxError {
line: number;
column: number;
offset: number;
location: LocationRange;
expected:any[];
found:any;
name:string;
message:string;
}
}
export type Location = PEG.Location;
export type LocationRange = PEG.LocationRange;
export 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;
}
export type GrammarError = PegjsError;
export var GrammarError: any;
export interface ParserOptions {
startRule: string;
tracer: any;
}
export interface Parser {
parse(input: string, options?:ParserOptions): any;
SyntaxError: any;
}
export interface BuildOptions {
cache?: boolean;
allowedStartRules?: string[];
optimize?: string;
plugins?: any[];
}
export interface OutputBuildOptions extends BuildOptions {
output?: string;
}
export function buildParser(grammar: string, options?: BuildOptions): Parser;
export function buildParser(grammar: string, options?: OutputBuildOptions): Parser | string;
export namespace parser {
type SyntaxError = PegjsError;
var SyntaxError: any;
}
export as namespace PEG;
{
"name": "@types/pegjs",
"version": "0.0.28",
"description": "TypeScript definitions for PEG.js",
"license": "MIT",
"author": "vvakame <https://github.com/vvakame>, Tobias Kahlert <https://github.com/SrTobi>",
"main": "",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"dependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "e4680a944ad1a517d37d6b79f32d7ba64fe343dc51a613ba058d93d135f0fd89"
}
# Installation
> `npm install --save @types/pegjs`
# Summary
This package contains type definitions for PEG.js (http://pegjs.org/).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/pegjs
Additional Details
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT
* File structure: UMD
* Library Dependencies: none
* Module Dependencies: none
* Global values: PEG
# Credits
These definitions were written by vvakame <https://github.com/vvakame>, Tobias Kahlert <https://github.com/SrTobi>.
{
"authors": "vvakame <https://github.com/vvakame>, Tobias Kahlert <https://github.com/SrTobi>",
"definitionFilename": "index.d.ts",
"libraryDependencies": [],
"moduleDependencies": [],
"libraryMajorVersion": "0",
"libraryMinorVersion": "0",
"libraryName": "PEG.js",
"typingsPackageName": "pegjs",
"projectName": "http://pegjs.org/",
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"sourceBranch": "types-2.0",
"kind": "UMD",
"globals": [
"PEG"
],
"declaredModules": [],
"files": [
"index.d.ts"
],
"hasPackageJson": false,
"contentHash": "e4680a944ad1a517d37d6b79f32d7ba64fe343dc51a613ba058d93d135f0fd89"
}
-83
// Type definitions for PEG.js
// Project: http://pegjs.org/
// Definitions by: vvakame <https://github.com/vvakame>, Tobias Kahlert <https://github.com/SrTobi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace PEG {
function parse(input:string):any;
interface Location {
line: number;
column: number;
offset: number;
}
interface LocationRange {
start: Location,
end: Location
}
class SyntaxError {
line: number;
column: number;
offset: number;
location: LocationRange;
expected:any[];
found:any;
name:string;
message:string;
}
}
export type Location = PEG.Location;
export type LocationRange = PEG.LocationRange;
export 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;
}
export type GrammarError = PegjsError;
export var GrammarError: any;
export interface ParserOptions {
startRule: string;
tracer: any;
}
export interface Parser {
parse(input: string, options?:ParserOptions): any;
SyntaxError: any;
}
export interface BuildOptions {
cache?: boolean;
allowedStartRules?: string[];
optimize?: string;
plugins?: any[];
}
export interface OutputBuildOptions extends BuildOptions {
output?: string;
}
export function buildParser(grammar: string, options?: BuildOptions): Parser;
export function buildParser(grammar: string, options?: OutputBuildOptions): Parser | string;
export namespace parser {
type SyntaxError = PegjsError;
var SyntaxError: any;
}
export as namespace PEG;
{
"name": "@types/pegjs",
"version": "0.0.27",
"description": "TypeScript definitions for PEG.js",
"main": "",
"scripts": {},
"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",
"typings": "index.d.ts",
"dependencies": {}
}
# Installation
> `npm install --save @types/pegjs`
# Summary
This package contains type definitions for PEG.js (http://pegjs.org/).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/pegjs
Additional Details
* Last updated: Thu, 14 Jul 2016 13:52:48 GMT
* File structure: UMD
* Library Dependencies: none
* Module Dependencies: none
* Global values: PEG
# Credits
These definitions were written by vvakame <https://github.com/vvakame>, Tobias Kahlert <https://github.com/SrTobi>.
{
"authors": "vvakame <https://github.com/vvakame>, Tobias Kahlert <https://github.com/SrTobi>",
"definitionFilename": "index.d.ts",
"libraryDependencies": [],
"moduleDependencies": [],
"libraryMajorVersion": "0",
"libraryMinorVersion": "0",
"libraryName": "PEG.js",
"typingsPackageName": "pegjs",
"projectName": "http://pegjs.org/",
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"sourceBranch": "types-2.0",
"kind": "UMD",
"globals": [
"PEG"
],
"declaredModules": [],
"files": [
"index.d.ts"
],
"contentHash": "e4680a944ad1a517d37d6b79f32d7ba64fe343dc51a613ba058d93d135f0fd89"
}