node-connect-pg-simple icon indicating copy to clipboard operation
node-connect-pg-simple copied to clipboard

Import + update typings from DefinitelyTyped

Open HoldYourWaffle opened this issue 4 years ago • 11 comments

express-session is getting new typings that are incompatible with the current ones on DefinitelyTyped. I updated the typings for this module to stay compatible with these new upstream typings.

Because DefinitelyTyped is a mess and it's generally preferable to include typings directly in the package, I'm creating the PR here. If you don't want to include type definitions directly in the package I'll be happy to move this PR over to DT.

These updates should be backwards-compatible with those on DefinitelyTyped because I only added some missing definitions for functions.

HoldYourWaffle avatar Sep 29 '19 20:09 HoldYourWaffle

Shoot I misclicked and created the PR without finishing my comment. In case you're reading this in an email: be sure to read my edit.

HoldYourWaffle avatar Sep 29 '19 20:09 HoldYourWaffle

In case anyone wants to use these definitions before this is merged without the hassle of git dependencies in node: I have published my fork here (be sure to use my fork of express-session as well).

HoldYourWaffle avatar Sep 29 '19 20:09 HoldYourWaffle

I'm not opposed to adding type definitions 👍

Does these ones have a dependency upon https://github.com/expressjs/session/pull/656 ?

voxpelli avatar Oct 01 '19 19:10 voxpelli

That's great to hear!

They shouldn't since I just added some methods, but I haven't explicitly tested it either (nor am I able to right now).

HoldYourWaffle avatar Oct 01 '19 21:10 HoldYourWaffle

@HoldYourWaffle Did you have any success in the DefinitelyTyped and/or Express project?

voxpelli avatar Jun 29 '20 14:06 voxpelli

Not really unfortunately. This was a couple of months ago, but if I remember correctly, there were some issues over at express concerning maintenance and a new major version. I tried putting the new definitions in DefinitelyTyped, but the bot kindof screwed me over.

HoldYourWaffle avatar Jul 01 '20 16:07 HoldYourWaffle

Just to give a little status update, more than a year later the upstream issues still hasn't been resolved. I have just created a second-attempt PR over at DT, hoping to finally get this fixed as soon as possible.

HoldYourWaffle avatar Aug 05 '20 19:08 HoldYourWaffle

It has been more than a year, but I'm happy to announce that https://github.com/DefinitelyTyped/DefinitelyTyped/pull/46576 was finally merged!

I'll try to update these definitions as soon as possible.

HoldYourWaffle avatar Nov 10 '20 11:11 HoldYourWaffle

Cool @HoldYourWaffle, thanks for the effort!

voxpelli avatar Nov 10 '20 14:11 voxpelli

any updates on this?

obedm503 avatar Mar 18 '21 03:03 obedm503

@obedm503 No, not from me, been holding back a bit to see how https://github.com/DefinitelyTyped/DefinitelyTyped/pull/46576 has been working out, but should be something I should look into when I have some time

voxpelli avatar Mar 18 '21 08:03 voxpelli