Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include TypeScript stack (cds-routing-handlers) #13

Closed
hakimio opened this issue Jul 2, 2021 · 7 comments
Closed

Include TypeScript stack (cds-routing-handlers) #13

hakimio opened this issue Jul 2, 2021 · 7 comments

Comments

@hakimio
Copy link

hakimio commented Jul 2, 2021

It would be nice if there was also TypeScript example using cds-routing-handlers. I imagine it should be a bit similar to the Java one.

@tsteckenborn
Copy link

With TypeScript support not being officially there yet, I guess that‘s nothing for the SAP-samples. Also SAP might go in a different direction compared to cds-routing-handlers, see the cap-samples repository. In there you might find a quick look at something called cds-ts, which is not yet released to us, the public.

Let‘s see what this months release will bring to us 😉

@hakimio
Copy link
Author

hakimio commented Jul 2, 2021

@tsteckenborn can you link the repository?

@tsteckenborn
Copy link

tsteckenborn commented Jul 2, 2021

@hakimio: You might start here SAP-samples/cloud-cap-samples#245.

Yet that's still in the very early stages. Using TypeScript I sometimes also encountered Types with Typos or deviating from the documentation (fields marked as mandatory which aren't).

Anyways there's been quite some improvement over time.So they seem to be on it, yet it's difficult to evaluate how far it is.

@hakimio
Copy link
Author

hakimio commented Jul 2, 2021

Any documentation or other examples for cds-ts? The linked PR looks like it only contains "hello world" code.

@tsteckenborn
Copy link

tsteckenborn commented Jul 2, 2021

That‘s right. To my knowledge, no. As I said it‘s not even released to public yet. Therefor I guess that the request to include a TypeScript sample with cds-routing-handlers will not be fulfilled.

Edit: Let‘s see what the repo maintainers say. Maybe they are going to do it. Would be great to see more TypeScript exposure.

@hakimio
Copy link
Author

hakimio commented Jul 16, 2021

News about cds-ts:
https://www.youtube.com/watch?v=P5TVj6YDC1c&t=53s
https://cap.cloud.sap/docs/get-started/using-typescript#cds-ts

Anyway, it's not a replacement for cds-routing-handlers or cds2types. It's just node-ts intergration.

@iwonahahn
Copy link
Contributor

The issue seems to be resolved and we are about to close this issue channel here in favor of the SAP Community.
In case you still need support, use our community to get help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants