question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Typescript typings] Create a better version of type definitions

See original GitHub issue

Hi,

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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
xumxcommented, Sep 12, 2016

Please remove the /typings/node from the repository.

1reaction
mikeesouthcommented, Jul 26, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found