heneryhawk / cap-bookshop-typescript Goto Github PK
View Code? Open in Web Editor NEWCAP Bookshop TypeScript example
CAP Bookshop TypeScript example
Hey folks,
so in https://github.com/HeneryHawk/cap-bookshop-typescript/blob/master/src/server.ts you are calling Server.run()
without an await even though run()
is an async function. To use top level awaits though you need to set the module syntax to es2022
. I did that but got a problem later in the tree when importing the cds-routing-handlers
since this uses commonjs modules with require()
syntax.
When I try to integrate it on my end the linter already complains about the missing await
. At this line https://github.com/HeneryHawk/cap-bookshop-typescript/blob/master/src/server.ts#L34.
Am I integrating that wrong or is there a way to circumvent this problem?
Hi,
First of all, thanks for your great work. This project help me a lot to have a prototype of Typescript project for CAP.
If possible, a sample unit test like the one in Cloud-Cap-Sample would be great! (https://github.com/SAP-samples/cloud-cap-samples/tree/master/test)
Recently, I saw SAP CAP begin to support TS through TS-Node, will it be the new direction of SAP CAP?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.