@xaendar/core 0.5.8 → 0.6.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.
@@ -91,7 +91,7 @@ export declare type Computed<Value = any> = Signal.Computed<Value> & {
91
91
  * @param options - Configuration options for the signal.
92
92
  * @returns A {@link Computed} instance.
93
93
  */
94
- export declare function computed<Value = any>(value: Value, options: SignalOptions<Value>): Computed<Value>;
94
+ export declare function computed<Value = any>(value: Value, options?: SignalOptions<Value>): Computed<Value>;
95
95
 
96
96
  /**
97
97
  * Runs a side-effectful function and automatically re-runs it whenever any
@@ -267,7 +267,7 @@ declare type PropertyDecoratorOptionsWithRequired<ActualValue = unknown, Incomin
267
267
  * @param options - Configuration options for the signal.
268
268
  * @returns A {@link SignalType} instance.
269
269
  */
270
- export declare function signal<T = any>(value: T, options: SignalOptions<T>): Signal_2<T>;
270
+ export declare function signal<T = any>(value: T, options?: SignalOptions<T>): Signal_2<T>;
271
271
 
272
272
  /**
273
273
  * A writable reactive value.
@@ -279,11 +279,11 @@ export declare function signal<T = any>(value: T, options: SignalOptions<T>): Si
279
279
  */
280
280
  declare type Signal_2<Value = any> = Signal.State<Value> & {
281
281
  /**
282
- * Sets a new value for the signal.
282
+ * Get the current value of the signal.
283
283
  *
284
- * @param value - The new value to store.
284
+ * @returns The current value of the signal.
285
285
  */
286
- (value: Value): void;
286
+ (): Value;
287
287
  /**
288
288
  * Updates the signal value based on its previous value.
289
289
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaendar/core",
3
- "version": "0.5.8",
3
+ "version": "0.6.1",
4
4
  "description": "A library containing core utils such as webcomponent base classes and theming support",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -16,7 +16,7 @@
16
16
  }
17
17
  },
18
18
  "dependencies": {
19
- "@xaendar/signals": "0.5.8",
20
- "@xaendar/types": "0.5.8"
19
+ "@xaendar/signals": "0.6.1",
20
+ "@xaendar/types": "0.6.1"
21
21
  }
22
22
  }