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.

Why don't we fully support Typescript?

See original GitHub issue

As first, I don’t want to make any war or comparison about pros/cons of TS vs JS. I need TS as its our stakeholders requirement.

Playing around with CodeceptJS took me to some strange things:

  • CodeceptJS isn’t shipped with any TS definition
  • To get the TS definition, I must use command codeceptjs def . which generates a steps.d.ts. However, that file is complained by tsc command right at the first time I compile the TS project.
  • The generated file doesn’t have enough definition, some are:
    • function Data() returns any type => the call to Scenario warns about the type of the given I
    • There’s no definition for class Datatable

You know my problem, is there any plan to fully support TypeScript like other frameworks/libraries?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
prosenjit-mannacommented, Dec 13, 2019

Also If there is an option when the project is being generated like

  • Javascript
  • Typescript

That will be a lot easier.

3reactions
elukoyanovcommented, Nov 7, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Why don't we fully support Typescript? · Issue #1302
You know my problem, is there any plan to fully support TypeScript like other frameworks/libraries? It's not implemented yet.
Read more >
The reasons I don't use Typescript
I find it all to be too big, too fussy, too much in the way, and too non-revolutionary to justify the cost. If...
Read more >
7 really good reasons not to use TypeScript - everyday.codes
Everyone loves TypeScript. There are a lot of good reasons to use TypeScript, but I am going to give you 7 really good...
Read more >
Documentation - Do's and Don'ts
Don't use any as a type unless you are in the process of migrating a JavaScript project to TypeScript. The compiler effectively treats...
Read more >
What is TypeScript and why should you use it?
TypeScript extends JavaScript and improves the developer experience. It enables developers to add type safety to their projects. Moreover, ...
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