• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gettyimages / gettyimages-api_nodejs / 32191505935
98%
main: 98%

Build:
Build:
LAST BUILD BRANCH: refs/tags/6.7.0
DEFAULT BRANCH: main
Ran 18 Aug 2026 10:11PM UTC
Jobs 3
Files 19
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Aug 2026 10:10PM UTC coverage: 98.093%. Remained the same
32191505935

Pull #84

github

mapitman
Add TypeScript declarations for the existing public surface

Declare the client, the fourteen request classes, and their fluent builders in
a single root gettyimages-api.d.ts, and point the "types" field at it. This
covers only what the SDK supports today: no response models, no new operations,
and no literal-union enums for values the SDK never enumerates.

No runtime code changes, so JavaScript consumers are unaffected. The risk that
does exist is a declaration too strict for a call the SDK already accepts,
which would break TypeScript consumers at compile time. Three cases drove the
signatures:

- Builders named in the singular, such as withCollectionCode, are called with
  arrays throughout the tests, so they accept a value or an array.
- Identifier builders, such as withKeywordId, are called with numbers as well
  as strings.
- execute() returns Promise<any>, because Promise<unknown> would force every
  existing consumer to cast before reading a response field.

types-test.ts exercises every builder in the argument forms the AVA tests and
the README use. It runs under "npm run test:types" and in CI, so an over-strict
signature fails the build rather than reaching consumers.

Closes #56
Pull Request #84: Add TypeScript declarations for the existing public surface

94 of 115 branches covered (81.74%)

1029 of 1049 relevant lines covered (98.09%)

114.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 16.x - 32191505935.1 18 Aug 2026 10:11PM UTC 19
98.09
GitHub Action Run
2 18.x - 32191505935.2 18 Aug 2026 10:11PM UTC 19
98.09
GitHub Action Run
3 14.x - 32191505935.3 18 Aug 2026 10:11PM UTC 19
98.09
GitHub Action Run
Source Files on build 32191505935
  • Tree
  • List 19
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Pull Request #84
  • PR Base - main (#32181153638)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc