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 / Types

See original GitHub issue

I’d like to know what your plans for typescript is? I’ve seen a twitter post somewhere that you were looking for a conversion tool for JSDoc to TS.

I’ve started creating some types for logux in my app. But it would make more sense if those types ended up in your repository directly so others can benefit, too.

Do you plan to migrate to TS? Or do you plan to just add .d.ts-files?

I could help with both types and typescript conversion. The important thing is that the types will be kept in sync with the JS if only .d.ts-files will be added.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
aicommented, Mar 29, 2020

Logux got types. I am planning to release it today.

0reactions
aicommented, Jan 12, 2020

I don’t understand why compiling is a problem for you.

We need a way to use Logux directly from GitHub like "@logux/core": "logux/core" (without need to call sometime after install). It is useful to test fixes on production.

What if we will use approach from my Storeon? We could have separated .d.ts file and run TS on CI to check that current code (and tests) with this types to check that types are accurate.

The question is how to use TS types in Documentation.js.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handbook - Basic Types - TypeScript
Basic Types · Boolean · Number · String · Array · Tuple · Enum · Unknown · Any.
Read more >
Documentation - Everyday Types - TypeScript
JavaScript has three very commonly used primitives: string , number , and boolean . Each has a corresponding type in TypeScript. As you...
Read more >
Documentation - Advanced Types - TypeScript
TypeScript has two special types, null and undefined , that have the values null and undefined respectively. We mentioned these briefly in the...
Read more >
Documentation - Object Types - TypeScript
In JavaScript, the fundamental way that we group and pass around data is through objects. In TypeScript, we represent those through object types....
Read more >
Documentation - Creating Types from Types - TypeScript
An overview of the ways in which you can create more types from existing types. ... TypeScript's type system is very powerful because...
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