serviejs/popsicle

TypeScript Declaration Publishing

Closed this issue · 3 comments

See TypeScript Declaration Publishing

Right now VS Code doesn't automatically load bundled TypeScript definitions. Either two of the options from the link above should solve the problem.

I've only checked adding types: "./dist/common.d.ts" property to package.json and it kind of worked (but still throwing errors about tough-cookie).

Please search existing issues before opening a new one. I know how it all works, I'm stuck with a lack of TypeScript supporting what I need to make it work. See microsoft/types-publisher#4 and microsoft/TypeScript#7753, with duplicate issues being #89, #88 and #77.

Sorry, my bad, should have looked into closed issues first. Went with typings after all.

Sorry for the pain, I know it's annoying! I wish I could replace Typings today too, but I need to get all the dependencies into DefinitelyTyped and even then, I can't support browser module resolution in case anyone is using popsicle in browsers.