@moku-labs/core 0.1.3 → 1.5.0
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/dist/index.d.cts +3 -1
- package/dist/index.d.mts +3 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -575,6 +575,8 @@ declare function createCorePlugin<const N extends string, C extends Record<strin
|
|
|
575
575
|
//#region src/plugin.d.ts
|
|
576
576
|
/**
|
|
577
577
|
* Structural plugin shape used for generic constraints without variance issues.
|
|
578
|
+
* `events` is optional so core-plugin instances (no events phantom) match too —
|
|
579
|
+
* the runtime already resolves them through the same `require` lookup map.
|
|
578
580
|
*
|
|
579
581
|
* @example
|
|
580
582
|
* ```ts
|
|
@@ -588,7 +590,7 @@ type PluginLike = {
|
|
|
588
590
|
readonly config: unknown;
|
|
589
591
|
readonly state: unknown;
|
|
590
592
|
readonly api: unknown;
|
|
591
|
-
readonly events
|
|
593
|
+
readonly events?: Record<string, unknown>;
|
|
592
594
|
};
|
|
593
595
|
};
|
|
594
596
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -575,6 +575,8 @@ declare function createCorePlugin<const N extends string, C extends Record<strin
|
|
|
575
575
|
//#region src/plugin.d.ts
|
|
576
576
|
/**
|
|
577
577
|
* Structural plugin shape used for generic constraints without variance issues.
|
|
578
|
+
* `events` is optional so core-plugin instances (no events phantom) match too —
|
|
579
|
+
* the runtime already resolves them through the same `require` lookup map.
|
|
578
580
|
*
|
|
579
581
|
* @example
|
|
580
582
|
* ```ts
|
|
@@ -588,7 +590,7 @@ type PluginLike = {
|
|
|
588
590
|
readonly config: unknown;
|
|
589
591
|
readonly state: unknown;
|
|
590
592
|
readonly api: unknown;
|
|
591
|
-
readonly events
|
|
593
|
+
readonly events?: Record<string, unknown>;
|
|
592
594
|
};
|
|
593
595
|
};
|
|
594
596
|
/**
|