Changelog - 2026-10-19
Augment @venizia/ardor, not the declaring packages
Bug FixIn one line. The docs told an application to augment @venizia/ardor-react and @venizia/ardor-admin and said an umbrella block never merges. It is the other way round: augment @venizia/ardor.
ts
// ... one block on the umbrella declares both kinds of key.
declare module '@venizia/ardor' {
interface IUseInjectableKeysOverrides {
'services.PricingService': true;
}
interface IUseTranslateKeysOverrides {
'app.title': true;
}
}What changed
- The old claim was wrong.
@venizia/ardorre-exports the two interfaces withexport *, and TypeScript follows that chain to the declaring package, so an umbrella block merges and undeclared keys are still rejected. Checked on@venizia/ardor@0.1.4-5with TypeScript 6 and both of Bun's linkers. - The old advice failed under a non-hoisting linker. An application depends on
@venizia/ardoralone. With Bun'sisolatedlinker (or pnpm)@venizia/ardor-reactand@venizia/ardor-adminare not resolvable from it, sodeclare module '@venizia/ardor-react'fails with TS2664 and the keys are missing. A hoisting linker hides it. - No code change. ARDOR's packages are unchanged. The guides now say this.
Who is affected
- An application with
declare module '@venizia/ardor-react'or'@venizia/ardor-admin'that does not list that package in its ownpackage.json, on a non-hoisting linker. Retarget the block to@venizia/ardor. Elsewhere the old block still works. - An application that augments
@venizia/ardoralready. Nothing to do.