[Typescript typings] Create a better version of type definitions
See original GitHub issueHi,
I use the azure-storage
library for many projects and I also use typescript
in many of these.
The actual typescript definitions (source) are not reliable and are really difficult to maintain.
During my development I always hacked the source declarations and adapted it to my project so I decided to build a new typings project to host a better version of azure-storage-node
type definitions.
The project is available at https://github.com/typed-contrib/azure-storage-node. It is built by following the same architecture as the javascript sources and it is tested over the source samples and library tests.
This project can evolve in two way:
- It can be merged with this repository so maintenance of both javascript and typings can be centralized.
- It can live as side of this project by removing the actual definitions and add a link in the documentation to explain how to obtain the type definitions for
azure-storage
module.
What do you think is the better solution ?
Thanks.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Documentation - Creating Types from Types - TypeScript
An overview of the ways in which you can create more types from existing types.
Read more >Typescript Typings: The Complete Guide: @types Compiler ...
The @types scope package contains type definitions for a lot of libraries, like Express, Sequelize, JQuery, and many others. So definitively ...
Read more >TypeScript: Adding Custom Type Definitions for Existing ...
The step-by-step process to get to that definition is started by adding a property that does exist, and going to the definitions of...
Read more >Surviving the TypeScript Ecosystem — Part 4 - Medium
Say you are using some JavaScript library for which TypeScript can't figure out the types, what do you do? The solution is to...
Read more >Publishing Typings to DefinitelyTyped | by Max Boguslavskiy
Typescript is a great addition to JavaScript. Unfortunately, not every JS package has definitions for TypeScript. Of course, you could create your custom ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please remove the /typings/node from the repository.
I would suggest adding:
"typings": "typings/azure-storage/azure-storage.d.ts"
to package.json in order for typescript to find the typings correctly when using node module resolution. @hasonmsft do you agree? I can submit a PR if you want.