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

Declare a new instance with function, no more class constructor ? #141

Open
PaulRosset opened this issue May 10, 2017 · 0 comments
Open

Comments

@PaulRosset
Copy link

PaulRosset commented May 10, 2017

Hi,

I just downloaded the last release of node-wit (4.2.0) with
npm install --save node-wit

Then ,
const Wit = require('node-wit')

But Wit is no more a constructor but now a function, so it works with

const client = Wit.Wit({ accessToken: '<ACCESS_TOKEN>' })

In the doc, it's still saying that is a constructor.
Is it normal ?

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

No branches or pull requests

3 participants
@PaulRosset and others