npm @cap-js/cds-types 0.2.0
v0.2.0

latest releases: 0.5.0, 0.4.0, 0.3.0-beta.1...
5 months ago

Added

  • Type for special error listener srv.on('error')

Changed

  • source, column_expr, and predicate have been converted to partial intersection types. This offers all possible optional properties. You will have to make sure to check their presence when accessing them

Fixed

  • srv.send overload to also allow optional headers
  • Reflected types like cds.entity, cds.struct, cds.Association are now properly exposed
  • cds.builtin.types got a more accurate type
  • The LinkedEntity.drafts property is now optional. At runtime, it's only set for drafted entities.
  • cds.model is marked as modifiable (for tests only!)
  • SELECT.from got its ref property back

Don't miss a new cds-types release

NewReleases is sending notifications on new releases.