Skip to content

Commit

Permalink
Add types to generate (#182)
Browse files Browse the repository at this point in the history
* add type

* fix callback type

* callnback is optional
  • Loading branch information
isacjunior authored and gkushang committed Jun 8, 2019
1 parent 06a54a5 commit e382113
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions index.d.ts
@@ -0,0 +1,19 @@
interface Options {
theme: string,
jsonFile: string,
jsonDir?: string,
output: string,
screenshotsDirectory?: string,
reportSuiteAsScenarios: boolean,
ignoreBadJsonFile?: boolean,
launchReport: boolean,
columnLayout?: number,
storeScreenshots?: boolean,
noInlineScreenshots?: boolean,
name?: string,
metadata?: {
[key: string]: string
},
}

export function generate(options: Options, callback?: () => void): void
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -3,6 +3,7 @@
"version": "5.0.0",
"description": "Generates Cucumber HTML reports in three different themes",
"main": "index.js",
"typings": "./index.d.ts",
"author": {
"name": "Kushang Gajjar",
"email": "g.kushang@gmail.com"
Expand Down

0 comments on commit e382113

Please sign in to comment.