react-dialogger 1.1.111 → 1.1.113

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.
@@ -43,9 +43,9 @@ declare class DialogBase<Values extends Record<string, any>, StockDialogHandlers
43
43
  parent: Dialog<Values, StockDialogHandlers, StockDialogRefs>;
44
44
  });
45
45
  setValue<T>(key: string, value: Dialogify<T>): void;
46
- get xhandlers(): StockDialogHandlers;
46
+ get xhandlers(): Record<string, DialogExternalHandlers<DialogExternalHandler>>;
47
47
  appendXHandler<H>(key: string, handler: DialogExternalHandler): void;
48
- get xrefs(): DialogExternalRefs<DialogExternalRef>;
48
+ get xrefs(): Record<string, DialogExternalRefs<DialogExternalRef>>;
49
49
  appendXRef<R>(key: R, ref: DialogExternalRef): void;
50
50
  get parent(): Dialog<Values, StockDialogHandlers, StockDialogRefs>;
51
51
  get dialogTranslate(): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dialogger",
3
- "version": "1.1.111",
3
+ "version": "1.1.113",
4
4
  "description": "This package is a continuation of the react-araci package. Due to an error, react-araci was removed, and it has been decided to continue under the new package name react-dialogger",
5
5
  "main": "index.js",
6
6
  "author": "Sueleyman Topaloglu",
@@ -261,8 +261,8 @@ export type DialogExternalHandler = (...args: any[]) => any;
261
261
  export type DialogExternalHandlers<T> = T extends (...args: any[]) => any ? DialogExternalHandler : T extends object ? {
262
262
  [K in keyof T]: DialogExternalHandlers<T[K]>;
263
263
  } : never;
264
- export type DialogExternalRef = {
265
- current: null;
264
+ export type DialogExternalRef<T = unknown> = {
265
+ current: T | null;
266
266
  };
267
267
  export type DialogExternalRefs<T> = T extends {
268
268
  current: null;