Next-auth: Typescript Types?

Created on 5 Sep 2018  路  6Comments  路  Source: nextauthjs/next-auth

Are there any typescript typings or any plans to make them?

If not I might whip some up.

enhancement

Most helpful comment

Yup just the last part of publishing the types missing, I'll try to give it a push 馃檹馃徎

All 6 comments

There are not, but this would be very welcome.

If you could provide an example (even if it's just a set of instructions here!) of how to check they work and are correct to make maintain easier that would be great!

Sounds good. I'll submit a PR an a bit.

I don't know of any good way to check that they work with a JavaScript project besides manually looking over them. But they just need to be updated whenever a module, function or object signature changes.

@iaincollins Is there any plan to publish the version with typescript typings? That would be awesome. Also, package.json is missing types field to make it work with TS

Hey! I tried to use the TS types you provided, but found some problems using it in my projects.
I created #71 to apply the changes I needed, and also provided a typescript example.

As I am no typescript pro, criticism is welcome.

Being tracked in #220

Yup just the last part of publishing the types missing, I'll try to give it a push 馃檹馃徎

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alephart picture alephart  路  3Comments

iaincollins picture iaincollins  路  3Comments

dmi3y picture dmi3y  路  3Comments

ryanditjia picture ryanditjia  路  3Comments

loonskai picture loonskai  路  3Comments