react-dialogger 1.1.109 → 1.1.110

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dialogger",
3
- "version": "1.1.109",
3
+ "version": "1.1.110",
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",
@@ -257,7 +257,7 @@ export type DialogValues<T extends Record<string, any>> = ModelDialogValues<T>;
257
257
  export type Dialogify<T> = T extends Function ? never : T extends string | number | boolean | null | undefined | Date ? T : T extends Array<infer U> ? Dialogify<U>[] : T extends object ? {
258
258
  [K in keyof T]: Dialogify<T[K]>;
259
259
  } : never;
260
- export type DialogExternalHandlerFn = ((...args: any[]) => any) | unknown;
260
+ export type DialogExternalHandlerFn<T = unknown> = T extends Function ? ((...args: any[]) => any) : T;
261
261
  export type DialogExternalHandlers = Record<string, DialogExternalHandlerFn>;
262
262
  export type DialogExternalRef<T = unknown> = {
263
263
  current: T | null;