Skip to content

Commit

Permalink
Fix TypeScript for API users (#216)
Browse files Browse the repository at this point in the history
* Fix exporting PWMetrics

* Fix type definition of MainOptions.flags
  • Loading branch information
kaorun343 authored and denar90 committed Aug 10, 2019
1 parent 7bd28ff commit 0c74706
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,4 +242,4 @@ class PWMetrics {
}
}

module.exports = PWMetrics;
export = PWMetrics;
2 changes: 1 addition & 1 deletion types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface SheetsConfig {
}

export interface MainOptions {
flags?: FeatureFlags;
flags?: Partial<FeatureFlags>;
sheets?: SheetsConfig;
expectations?: ExpectationMetrics;
clientSecret?: AuthorizeCredentials;
Expand Down

0 comments on commit 0c74706

Please sign in to comment.