@nolikein/types-livewire3 1.1.2 → 1.1.3

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/LICENCE CHANGED
File without changes
package/README.md CHANGED
File without changes
package/dist/Alpine.d.ts CHANGED
File without changes
File without changes
@@ -415,7 +415,7 @@ export interface LivewireMagics<LivewireData, LivewireMethods> {
415
415
  * @param name
416
416
  * @param live false by default
417
417
  */
418
- $entangle(name: string, live?: boolean): EntangleInstance;
418
+ $entangle(name: string & keyof LivewireData, live?: boolean): EntangleInstance;
419
419
  /**
420
420
  * Watch the value of a property for changes...
421
421
  * Usage: Alpine.$watch('count', (value, old) => { ... })
@@ -423,7 +423,7 @@ export interface LivewireMagics<LivewireData, LivewireMethods> {
423
423
  * @param name
424
424
  * @param callback
425
425
  */
426
- $watch(name: string, callback: (value: unknown, old: unknown) => void): Promise<unknown>;
426
+ $watch(name: string & keyof LivewireData, callback: (value: unknown, old: unknown) => void): Promise<unknown>;
427
427
  /**
428
428
  * Refresh a component by sending a commit to the server
429
429
  * to re-render the HTML and swap it into the page...
package/dist/index.d.ts CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nolikein/types-livewire3",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Typescript content for Laravel Livewire 3",
5
5
  "license": "MIT",
6
6
  "author": "Côme Wasik",