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

types: import types for @nuxt/telemetry and @nuxt/components #7626

Merged
merged 3 commits into from Jun 30, 2020

Conversation

danielroe
Copy link
Member

Add missing types for new Nuxt modules @nuxt/telemetry and @nuxt/components.

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

Added two new properties to NuxtConfig type.

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly. (PR: #)
  • I have added tests to cover my changes (if not applicable, please state why)
  • All new and existing tests are passing.

@codecov-commenter
Copy link

codecov-commenter commented Jun 27, 2020

Codecov Report

Merging #7626 into dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev    #7626   +/-   ##
=======================================
  Coverage   70.28%   70.28%           
=======================================
  Files          88       88           
  Lines        3749     3749           
  Branches     1020     1019    -1     
=======================================
  Hits         2635     2635           
- Misses        905      906    +1     
+ Partials      209      208    -1     
Flag Coverage Δ
#unittests 70.28% <ø> (ø)
Impacted Files Coverage Δ
packages/webpack/src/plugins/vue/modern.js 3.50% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ffb340c...04fd3b8. Read the comment docs.

@danielroe danielroe marked this pull request as ready for review June 27, 2020 13:13
pi0
pi0 previously approved these changes Jun 28, 2020
@@ -32,6 +34,7 @@ export interface NuxtOptions extends Configuration {
buildDir: string
buildModules: NuxtOptionsModule[]
cli: NuxtOptionsCli
components: boolean | Array<string | ComponentsDir>
Copy link
Member

Choose a reason for hiding this comment

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

There is also object format support (which may be used later on to provide more options

Copy link
Member Author

Choose a reason for hiding this comment

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

Ideally the options would be completely defined in @nuxt/components and just imported in @nuxt/types. I will propose a PR to do that if that sounds good to you.

Copy link
Member

Choose a reason for hiding this comment

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

Indeed. Just published types for both 🙈 Updating deps in a sec.

Copy link
Member

Choose a reason for hiding this comment

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

@pi0 pi0 changed the title fix(types): add types for @nuxt/telemetry and @nuxt/components fix(types): import types for @nuxt/telemetry and @nuxt/components Jun 30, 2020
@pi0 pi0 changed the title fix(types): import types for @nuxt/telemetry and @nuxt/components types: import types for @nuxt/telemetry and @nuxt/components Jun 30, 2020
@pi0 pi0 merged commit 6b06ab2 into nuxt:dev Jun 30, 2020
@pi0 pi0 mentioned this pull request Jun 30, 2020
@danielroe danielroe deleted the new-configuration-types branch July 3, 2020 09:48
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants