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.

Feature Request: Typescript Support

See original GitHub issue

Is there any interest in supporting Typescript with the cli. As documented in the issue on the main repo, TypeScript support is workable and improving.

I think the missing piece for TS support is the CLI. I just wanted to gauge interest, as I would be happy to contribute to this.

If so, what would be the ideal approach:

>yo feathers-ts
? Project name test-proj
? Description
? What folder should the source files live in? src
? Which package manager are you using (has to be installed globally)? Yarn
? What type of API are you making? REST, Realtime via Socket.io

or one generator with a language option?

>yo feathers
? Project name test-proj
? Description
? What folder should the source files live in? src
? Which package manager are you using (has to be installed globally)? Yarn
? Which language would you like to use? TypeScript
? What type of API are you making? REST, Realtime via Socket.io

My preference would be the second one, although this is a slightly less convinient to implement.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:21 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
dafflcommented, Aug 23, 2019

Full TypeScript support is now also available in Feathers v4 and the @feathersjs/cli. It will not be deprecated.

1reaction
dafflcommented, Jun 28, 2018

Probably not at the moment. There is quite a bit of work involved in updating the codemods to work with TS and/or ES modules. There are three options:

  1. Fork the generator and try updating the generated code to TS. Unless you get the codemods updated as well this will probably mean that with a TS generator you have to wire up generated hooks and services manually.
  2. Wait for someone else to do it - we had two people do some great work around TypeScript but in general getting any actual help from the TypeScript “community” has been a big challenge
  3. Wait for me to find the time to update the codemods to support ES modules and TS - this will probably happen when the latest version of Node officially ships with ES module support
Read more comments on GitHub >

github_iconTop Results From Across the Web

[feature request]Need Official Typescript support · Issue #952
Issue details Maybe we need to do something for the trend of Typescript. Now most of my code is written using typescript, But...
Read more >
TestComplete Feature Requests - SmartBear Community
Request : Add TypeScript as a supported language. ... number / timestamp>", for scenarios such as username in signup functionality.
Read more >
Documentation - TypeScript 3.9
TypeScript 3.9 adds support to editing scenarios for this configuration. For more details, take a look at the pull request that added this...
Read more >
Basic Features: TypeScript - Next.js
Next.js supports TypeScript by default and has built-in types for pages and the API. You can get started with TypeScript in Next.js here....
Read more >
TypeScript support - Feature Requests - Retool Forum
TypeScript support · Feature Requests · DidiBear July 7, 2021, 9:04pm #1. What do you think about adding a query Run TS Code...
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