comment-parser
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -0,1 +1,4 @@ | ||
# v0.5.3 | ||
- corrected TypeScript definitions | ||
# v0.5.2 | ||
@@ -2,0 +5,0 @@ - added TypeScript definitions |
@@ -5,24 +5,26 @@ // Type definitions for comment-parser | ||
interface Comment { | ||
tags: Tag[]; | ||
line: number; | ||
description: string; | ||
source: string; | ||
declare namespace CommentParser { | ||
export interface Comment { | ||
tags: Tag[]; | ||
line: number; | ||
description: string; | ||
source: string; | ||
} | ||
export interface Tag { | ||
tag: string; | ||
name: string; | ||
optional: boolean; | ||
type: string; | ||
description: string; | ||
line: number; | ||
source: string; | ||
} | ||
export interface Options { | ||
parsers?: [(str: string, data: any) => { source: string, data: any }]; | ||
dotted_names?: boolean; | ||
} | ||
} | ||
interface Tag { | ||
tag: string; | ||
name: string; | ||
optional: boolean; | ||
type: string; | ||
description: string; | ||
line: number; | ||
source: string; | ||
} | ||
interface Options { | ||
parsers?: [(str: string, data: any) => { source: string, data: any }]; | ||
dotted_names?: boolean; | ||
} | ||
declare function parse(str: string, opts?: Options): [Comment]; | ||
declare function parse(str: string, opts?: CommentParser.Options): [CommentParser.Comment]; | ||
export = parse; |
{ | ||
"name": "comment-parser", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "Generic JSDoc-like comment parser. ", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"directories": { | ||
@@ -7,0 +8,0 @@ "test": "tests" |
Sorry, the diff of this file is not supported yet
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
48969
1508