Why don't we fully support Typescript?
See original GitHub issueAs 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 bytsc
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 toScenario
warns about the type of the givenI
- 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:
- Created 5 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top 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 >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
Also If there is an option when the project is being generated like
That will be a lot easier.
TS support was added. https://codecept.io/configuration/#require