Skip to content

Conversation

@orblazer
Copy link
Contributor

Hello,
I have add type definition for NuxtConfiguration.

This add auto-completion when we write config. Example:

import NuxtConfiguration from '@nuxt/config'

const config: NuxtConfiguration = {
  apollo: {
    tokenName: 'yourApolloTokenName',
    clientConfigs: {
      default: {
        httpEndpoint: 'http://localhost:4000'
      }
  }
}

Thanks.

@kieusonlam
Copy link
Collaborator

Hi @orblazer,

Can you fix all errors on the CircleCI test?

@orblazer
Copy link
Contributor Author

@kieusonlam I dont know how i can fix the types test.
And the error for dasdsa its not my.

@kieusonlam
Copy link
Collaborator

@orblazer

I found this: https://stackoverflow.com/questions/41462729/typescript-react-could-not-find-a-declaration-file-for-module-react-material/55478377

It might have a couple of way to fix the errors.

The dasdsa is just the console.log for the errorHandler test, so we can leave it there, it doesn't break anything :)

@orblazer
Copy link
Contributor Author

@kieusonlam I have fix the errors but the last need that PR : vuejs/apollo#627

This fix type check
@kieusonlam kieusonlam merged commit 090921a into nuxt-modules:master Jun 20, 2019
@kieusonlam
Copy link
Collaborator

Thanks :)

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