SampleSampletypeA worked example you read or clone. Evidence: it demonstrates, it never provides.See every one →What this type is →independently maintainedindependently maintainedoriginPublished by one person or a small company outside SAP. Says nothing about quality; the readings say that.See every one →Reference

cap-cds-typer

A CAP service in TypeScript whose handlers import Books and Order from #cds-models/CatalogService, the types @cap-js/cds-typer generates from the model.

Three files make that import resolve: @cap-js/cds-typer as a devDependency, an imports map for #cds-models/* in package.json, and the same path under compilerOptions.paths in tsconfig.json. The service itself is short: Books read-only, Orders draft-enabled with amount annotated FieldControl: #ReadOnly, and a before-CREATE handler that reads a book's price through the generated entity and multiplies it by the quantity. build:cf chains cds build --production, a rimraf of the generated .ts under gen/srv/srv, then tsc. The README is the CAP scaffold's own getting-started text, so the wiring and that one handler are the whole of it.

Facts

Last pushLicenceUNLICENSED

Where it sits

Lives in
Demonstrates
TypingCAPTypingcapabilityMaking the model visible to the compiler — generated types for entities and events so a rename breaks the build rather than production.
Flavors
Node.jsfrom its runtime
Runs
Cloud Foundry
Requires
@sap/cds^7@sap/cdsartifactThe peer range, as published.@cap-js/cds-typer@cap-js/cds-typerartifactThe generated model the handlers import from: the project declares the generator and maps #cds-models/* to its output in package.json and again in tsconfig.json.

Who is behind it

Mio YasutakeMio YasutakePersonMaintains this
In the atlas: maintains 47, contributes to 47, wrote 10
@miyasuta
maintainer

What it declares

Every artifact

Type
Sample
Origin
Independently maintained
Use as
A reference
Runtime
Node.js
Runs on
Cloud Foundry

As a sample

Declared for
^7
Form
does not say

Connections2

README

quoted from miyasuta/cap-cds-typer, read
miyasuta/cap-cds-typer/README.mdOn GitHub

Getting Started

Welcome to your new project.

It contains these folders and files, following our recommended project layout:

File or FolderPurpose
app/content for UI frontends goes here
db/your domain models and data go here
srv/your service models and code go here
package.jsonproject metadata and configuration
readme.mdthis getting started guide
excerpt, UNLICENSED, read the rest, on GitHub

Details

Sources3
GitHub APIdiscovered here, miyasutachecked
github.com/miyasuta/cap-cds-typertree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
runtimesnode
declared for^7
deploymentCloud Foundry
discovered viaGitHub API · miyasuta
first seen in the atlas
ecosystem and domaincap, developer-experience
History in the atlas1
  1. First seen.
For your agent
Ref
artifact:miyasuta-cap-cds-typer
JSON
/artifacts/miyasuta-cap-cds-typer.json
MCP
Connecting an agent