You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi thread, we're moving DefinitelyTyped to use GitHub Discussions for conversations the @types modules in DefinitelyTyped.
To help with the transition, we're closing all issues which haven't had activity in the last 6 months, which includes this issue. If you think closing this issue is a mistake, please pop into the TypeScript Community Discord and mention the issue in the definitely-typed channel.
@types/jsonwebtoken
package and had problems.Definitions by:
inindex.d.ts
) so they can respond.The change introduced 4 days ago with this commit has broken backwards compatibility. It is not accepting generic objects such as
{id:1234}
.The following line of code:
const signed = jsonwebtoken.sign({id:1234}, 'secret');
gets the following error:
Object literal may only specify known properties, and 'id' does not exist in type 'string | object | Buffer'.
Using
tsc 2.2.2
same results attsc 2.3.4
I believe this was mentioned in #16989
The text was updated successfully, but these errors were encountered: