Typing
Making the model visible to the compiler — generated types for entities and events so a rename breaks the build rather than production.
Overview
@cap-js/cds-typer Generates TypeScript types from a CDS model.
@cap-js/cds-types Type definitions for the CAP Node.js SDK.
com.sap.cds:cds-maven-plugin The Maven plugin that runs CDS build steps in a CAP Java project: compiling the model, generating typed Java accessor interfaces and adding facets to an existing project.
Not covered: On Node.js it stops at what capire calls "a certain degree of type safety": the declarations in @cap-js/cds-types@cap-js/cds-typesType definitions for the CAP Node.js SDK.sap official, cap trail the latest @sap/cds release, with gaps and errors capire announces itself, and every property of a type generated by @cap-js/cds-typer@cap-js/cds-typerGenerates TypeScript types from a CDS model.sap official, cap is optional by default. Past that edge cds-internal-toolcds-internal-toolReusable internals for people writing CAP extensions — annotation helpers, current cds runtime types, module resolution, reflection utilities and type assertions.independent, cap publishes its own "fresh cds runtime types" for authors of CAP extensions, and on Java any data read as a plain Map keeps its element names unchecked until runtime.
Artifacts
Content
Seen working
Neither the package manifest nor the repository tree declares a licence.
Details
Coverage
For your agent
- Ref
capability:typing- JSON
- /capabilities/typing.json
- MCP
- Connecting an agent