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.

Typings for Typescript

See original GitHub issue

I’m going to provide typings for Typescript. There are two common ways of doing it:

  1. Add d.ts file(s) to the library itself (the way mobx does, for example).
  2. Publish typings under DefinitelyTypes a.k.a. @types.

I’d prefer the first one. @foxhound87, any objections?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:31 (17 by maintainers)

github_iconTop GitHub Comments

14reactions
devdoomaricommented, Dec 3, 2017

@foxhound87 the typescript branch is going nowhere… (1 yr since last update) and maintaining separate d.ts files is quite a work…

how about doing a gradual migration to Typescript? e.g. start with one file, one function/variable definition, and start from there

8reactions
Metavirulentcommented, Aug 29, 2017

What’s the status of this branch? Will it get merged into master at some point? I think having types would be a huge benefit for us Typescript users and make the library easier to get into.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - Type Declarations - TypeScript
TypeScript includes declaration files for all of the standardized built-in APIs available in JavaScript runtimes. This includes things like methods and ...
Read more >
typings/typings: *DEPRECATED* The TypeScript Definition ...
Typings is the simple way to manage and install TypeScript definitions. It uses typings.json , which can resolve to the Typings Registry, GitHub,...
Read more >
Typescript Typings: The Complete Guide: @types Compiler ...
This @types scoped package is where we can find a ton of useful type definitions, such as for example the type definitions of...
Read more >
Dynamic Static Typing In TypeScript - Smashing Magazine
In this article, we look at some of the more advanced features of TypeScript, like union types, conditional types, template literal types, ...
Read more >
Types of TypeScript typings - Medium
Generics are one of the core features of TS. It gives us the possibility to abstract types. This means passing types like we...
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