@blac/core 2.0.0-rc.11 → 2.0.0-rc.13

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.cjs CHANGED
@@ -887,6 +887,8 @@ var StateContainer = class StateContainer {
887
887
  /**
888
888
  * Resolve an instance with ref counting (ownership semantics).
889
889
  * Creates a new instance if one doesn't exist, or returns existing and increments ref count.
890
+ * @template S - Optional state type override for generic StateContainers
891
+ * @template T - The StateContainer type (inferred from class)
890
892
  * @param instanceKey - Optional instance key (defaults to 'default')
891
893
  * @param constructorArgs - Arguments to pass to constructor if creating new instance
892
894
  * @returns The state container instance
@@ -896,6 +898,8 @@ var StateContainer = class StateContainer {
896
898
  }
897
899
  /**
898
900
  * Get an existing instance without incrementing ref count (borrowing semantics).
901
+ * @template S - Optional state type override for generic StateContainers
902
+ * @template T - The StateContainer type (inferred from class)
899
903
  * @param instanceKey - Optional instance key (defaults to 'default')
900
904
  * @returns The state container instance
901
905
  * @throws Error if instance doesn't exist
@@ -905,6 +909,8 @@ var StateContainer = class StateContainer {
905
909
  }
906
910
  /**
907
911
  * Safely get an existing instance with error handling.
912
+ * @template S - Optional state type override for generic StateContainers
913
+ * @template T - The StateContainer type (inferred from class)
908
914
  * @param instanceKey - Optional instance key (defaults to 'default')
909
915
  * @returns Discriminated union with either the instance or an error
910
916
  */
@@ -914,6 +920,8 @@ var StateContainer = class StateContainer {
914
920
  /**
915
921
  * Connect to an instance for bloc-to-bloc communication (borrowing semantics).
916
922
  * Gets or creates instance without incrementing ref count.
923
+ * @template S - Optional state type override for generic StateContainers
924
+ * @template T - The StateContainer type (inferred from class)
917
925
  * @param instanceKey - Optional instance key (defaults to 'default')
918
926
  * @param constructorArgs - Arguments to pass to constructor if creating new instance
919
927
  * @returns The state container instance