@rhythmjs/rhythm 0.0.19 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/mount.d.ts +2 -2
  2. package/package.json +1 -1
package/dist/mount.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import type { Middleware, MountMiddleware, Mountable } from "./types";
1
+ import type { Input, Middleware, MountMiddleware, Mountable } from "./types";
2
2
  export declare function mount<I extends object>(plugin: Mountable<I>): MountMiddleware<I>;
3
- export declare function mount<T extends object = {}, I extends object = any>(plugin: Mountable<I> & (T extends I ? unknown : never), condition: (ctx: T) => boolean): Middleware<T>;
3
+ export declare function mount<T extends object = {}, I extends object = any>(plugin: Mountable<I> & (T extends I ? unknown : never), condition: (ctx: T) => boolean): Middleware<T> & Input<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhythmjs/rhythm",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "A minimal, type-safe middleware and startup-composition kernel: register() at startup, use() per request, with derive, decorate, mount and include.",
5
5
  "homepage": "https://rhythm.js.org/rhythm",
6
6
  "license": "ISC",