hermione/v8.7.0
KuznetsovRoman
released this
27 Mar 12:22
·
213 commits
to master
since this release
🚀 Improvements
- feat: add ability to extend hermione.ctx typings (#886)
Usage example
- Extend interface
HermioneCtx
from module "hermione":
// global.d.ts
import type { HermioneCtx } from "hermione";
declare module "hermione" {
interface HermioneCtx {
someVariable: string;
}
}
- Use
hermione.ctx
with extended typings:
hermione.ctx.someVariable // string