@rbxts/replion 1.0.9 → 1.0.10

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/README.md CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  ## Install
4
4
  Install with [wally](https://wally.run/):\
5
- `Replion = "shouxtech/replion@1.0.9"`
5
+ `Replion = "shouxtech/replion@1.0.10"`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/replion",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "",
5
5
  "main": "src/init.lua",
6
6
  "scripts": {},
package/src/index.d.ts CHANGED
@@ -17,6 +17,12 @@ declare namespace Replion {
17
17
  get<K extends keyof T>(key: K): T[K];
18
18
  get(path: string[]): any;
19
19
 
20
+ observe(key: undefined, callback: (newValue: T, oldValue: Partial<T>) => void): Connection;
21
+ observe<K extends keyof T>(
22
+ key: K,
23
+ callback: (newValue: T[K], oldValue: T[K] | undefined) => void,
24
+ ): Connection;
25
+
20
26
  destroy(): void;
21
27
  }
22
28
 
@@ -27,7 +33,7 @@ declare namespace Replion {
27
33
  get<K extends keyof T>(key: K): T[K];
28
34
  get(path: string[]): any;
29
35
 
30
- observe(key: undefined, callback: (newValue: T, oldValue: T | undefined) => void): Connection;
36
+ observe(key: undefined, callback: (newValue: T, oldValue: Partial<T>) => void): Connection;
31
37
  observe<K extends keyof T>(
32
38
  key: K,
33
39
  callback: (newValue: T[K], oldValue: T[K] | undefined) => void,