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

RobotWebTools / rclnodejs / 27263579073
91%

Build:
DEFAULT BRANCH: develop
Ran 10 Jun 2026 08:47AM UTC
Jobs 1
Files 65
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

10 Jun 2026 08:29AM UTC coverage: 91.22%. Remained the same
27263579073

push

github

web-flow
fix(types): add type declarations for the rclnodejs/rosocket subpath (#1533)

The `./rosocket` subpath export shipped **no type declarations**, so under `node16`/`nodenext` module resolution:

- `import { startRosocket } from 'rclnodejs/rosocket'` failed with **TS7016** (the module implicitly had an `any` type).
- `@arethetypeswrong` reported **No types** for the subpath across every resolution mode.

### Changes

- **Add `rosocket/index.d.ts`** — types the public entry point (`startRosocket`, `StartRosocketOptions`, `RosocketServer`), matched against `rosocket/index.js` (`port=9000`, `host='0.0.0.0'`, required `node`, returns `{ wss, close, port }`). `wss` is typed as its `EventEmitter` supertype to avoid a hard dependency on `ws` types.
- **Add `rosocket/index.d.cts`** — a CommonJS-format companion (re-exporting the `.d.ts`) so the `require` condition resolves to a CJS type file and is not flagged as "Masquerading as ESM".
- **Wire per-condition `types` into the `./rosocket` export** in `package.json` (`import` → `index.d.ts`, `require` → `index.d.cts`).


Fix: #1532

2044 of 2402 branches covered (85.1%)

Branch coverage included in aggregate %.

16688 of 18133 relevant lines covered (92.03%)

227.22 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27263579073.1 10 Jun 2026 08:47AM UTC 65
91.22
GitHub Action Run
Source Files on build 27263579073
  • Tree
  • List 65
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27263579073
  • 01731e0b on github
  • Prev Build on develop (#27249695817)
  • Next Build on develop (#27326505326)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc