Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TypeScript for API users #216

Merged
merged 2 commits into from
Aug 10, 2019
Merged

Conversation

kaorun343
Copy link
Contributor

Hi.
This PR solves 2 problems so as to utilize the API with TypeScript.

  • It's needed to write export = PWMetrics instead of module.exports = PWMetrics for TypeScript. export = is converted into module.exports = end it provides to TypeScript compiler the information that PWMetrics is exported.
  • It's needed to wrap FeatureFlags by Partial in order to avoid writing all properties. As reading this library's document, it seems that we don't have to enumerate all flags.

@kaorun343 kaorun343 changed the title Fix TypeScript Fix TypeScript for API users Aug 8, 2019
Copy link
Collaborator

@denar90 denar90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍
Thanks :)

@denar90 denar90 merged commit 0c74706 into paulirish:master Aug 10, 2019
@kaorun343 kaorun343 deleted the fix-typescript branch August 18, 2019 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants