# bunqueue v2.7.12

Remove 63 unnecessary as Type assertions across src/ flagged by @typescript-eslint/no-unnecessary-type-assertion on CI's stricter @types/bun@1.3.13.

Canonical: https://bunqueue.dev/blog/bunqueue-v2-7-12/

---

<!-- Generated from changelog.md by docs/scripts/generate-release-posts.ts. Edit the changelog and regenerate. -->

Remove 63 unnecessary as Type assertions across src/ flagged by @typescript-eslint/no-unnecessary-type-assertion on CI's stricter @types/bun@1.3.13.

![](https://github.com/egeominotti.png?size=64) [egeominotti](https://github.com/egeominotti)

#### To install bunqueue v2.7.12

```bash title="bun"
bun add bunqueue@2.7.12
```

```bash title="npm"
npm install bunqueue@2.7.12
```

#### To upgrade bunqueue

```bash
bun add bunqueue@latest
```

## Internal

- Remove 63 unnecessary `as Type` assertions across `src/` flagged by `@typescript-eslint/no-unnecessary-type-assertion` on CI's stricter `@types/bun@1.3.13`. Pure type-level cleanup, no runtime impact.
- Refactor `src/cli/output.ts` `str()` to narrow `unknown` via explicit `typeof` branches and a `{ toString(): string }` interface cast, avoiding both `no-unnecessary-type-assertion` and `no-base-to-string` rule conflicts.

## Thanks to 1 contributor!

- [@egeominotti](https://github.com/egeominotti)

---

[← bunqueue v2.7.11](https://bunqueue.dev/blog/bunqueue-v2-7-11/) · [Release on GitHub](https://github.com/egeominotti/bunqueue/releases/tag/v2.7.12) · [Commits since v2.7.10](https://github.com/egeominotti/bunqueue/compare/v2.7.10...v2.7.12) · [Full changelog](https://bunqueue.dev/changelog/) · [All posts](https://bunqueue.dev/blog/)
