@canvas-harness/core 0.0.0 → 0.0.1

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 CHANGED
@@ -2974,8 +2974,14 @@ type Extension = {
2974
2974
  * Called when the extension is installed. May return a cleanup
2975
2975
  * function that runs on uninstall (in addition to auto-unsubscribed
2976
2976
  * listeners registered via `api.on`).
2977
+ *
2978
+ * `void` in the union is deliberate — extensions whose installer
2979
+ * does its work via `api.on` (auto-cleaned-up) don't need to return
2980
+ * anything. `undefined | (() => void)` would require an explicit
2981
+ * `return undefined`, which is noise. Biome's noConfusingVoidType
2982
+ * fires on this pattern; the suppression below is intentional.
2977
2983
  */
2978
- onInstall(api: ExtensionApi): undefined | (() => void);
2984
+ onInstall(api: ExtensionApi): void | (() => void);
2979
2985
  };
2980
2986
  /**
2981
2987
  * Defines an extension. Pure identity — exists for symmetry with
package/dist/index.d.ts CHANGED
@@ -2974,8 +2974,14 @@ type Extension = {
2974
2974
  * Called when the extension is installed. May return a cleanup
2975
2975
  * function that runs on uninstall (in addition to auto-unsubscribed
2976
2976
  * listeners registered via `api.on`).
2977
+ *
2978
+ * `void` in the union is deliberate — extensions whose installer
2979
+ * does its work via `api.on` (auto-cleaned-up) don't need to return
2980
+ * anything. `undefined | (() => void)` would require an explicit
2981
+ * `return undefined`, which is noise. Biome's noConfusingVoidType
2982
+ * fires on this pattern; the suppression below is intentional.
2977
2983
  */
2978
- onInstall(api: ExtensionApi): undefined | (() => void);
2984
+ onInstall(api: ExtensionApi): void | (() => void);
2979
2985
  };
2980
2986
  /**
2981
2987
  * Defines an extension. Pure identity — exists for symmetry with