cancel
Showing results for 
Search instead for 
Did you mean: 

FAQ: TypeScript typings for cds. apis?

Daniel7
Advisor
Advisor

Q: As Tobias asked in the chat of https://www.youtube.com/watch?v=WTOOse-Flj8: When are we going to see typings for cds.test?

Accepted Solutions (0)

Answers (1)

Answers (1)

Daniel7
Advisor
Advisor

A: First of all: yes, our typings are usually lacking behind a bit, sorry ( → we need help 🙂

But you can usually apply this as a workaround:

Do this:

const cds = require('@sap/cds/lib')
cds.test //> you'll get code completion

Instead of:

const cds = require('@sap/cds')
cds.test //> you don't get code completion for that today