@bluelibs/runner 4.5.4 → 4.5.6
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.
- package/AI.md +47 -8
- package/README.md +3 -7
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -5
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1634,11 +1634,13 @@ declare function defineResourceMiddleware<TConfig = any, TEnforceInputContract =
|
|
|
1634
1634
|
* @param patch - Properties to override (except `id`).
|
|
1635
1635
|
* @returns A definition of the same kind with overrides applied.
|
|
1636
1636
|
*/
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1637
|
+
type AnyTask = ITask<any, any, any, any, any, any>;
|
|
1638
|
+
type AnyResource = IResource<any, any, any, any, any, any, any>;
|
|
1639
|
+
type AnyTaskMiddleware = ITaskMiddleware<any, any, any, any>;
|
|
1640
|
+
type AnyResourceMiddleware = IResourceMiddleware<any, any, any, any>;
|
|
1641
|
+
type AnyHook = IHook<any, any, any>;
|
|
1642
|
+
type OverridePatch<T> = T extends AnyTask ? Omit<Partial<T>, "id"> & Pick<T, "run"> : T extends AnyResource ? Omit<Partial<T>, "id"> & Pick<T, "init"> : T extends AnyTaskMiddleware ? Omit<Partial<T>, "id"> : T extends AnyResourceMiddleware ? Omit<Partial<T>, "id"> & Pick<T, "run"> : T extends AnyHook ? Omit<Partial<T>, "id" | "on"> & Pick<T, "run"> : never;
|
|
1643
|
+
declare function defineOverride<T extends AnyTask | AnyResource | AnyTaskMiddleware | AnyResourceMiddleware | AnyHook>(base: T, patch: OverridePatch<T>): T;
|
|
1642
1644
|
|
|
1643
1645
|
/**
|
|
1644
1646
|
* Create a tag definition.
|
package/dist/index.mjs
CHANGED
|
@@ -550,7 +550,7 @@ __name(defineResourceMiddleware, "defineResourceMiddleware");
|
|
|
550
550
|
|
|
551
551
|
// src/definers/defineOverride.ts
|
|
552
552
|
function defineOverride(base, patch) {
|
|
553
|
-
const
|
|
553
|
+
const rest = patch;
|
|
554
554
|
return {
|
|
555
555
|
...base,
|
|
556
556
|
...rest,
|