@azure-net/kit 3.0.55 → 3.0.57

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.
@@ -18,4 +18,4 @@ export declare const createErrorParser: <BaseError = unknown, Custom = unknown>(
18
18
  parseBaseError?: typeof baseParseBaseError<Custom>;
19
19
  parseHttpError?: typeof baseParseHttpError<BaseError, Custom>;
20
20
  parseSchemaError?: typeof baseParseSchemaError<BaseError, Custom>;
21
- }) => (<T = unknown>(error: ErrorType<BaseError>) => Promise<AppError<T, Custom>>);
21
+ }) => (<T = unknown>(error: ErrorType<BaseError>, retry?: () => unknown | Promise<unknown>) => Promise<AppError<T, Custom>>);
@@ -1,4 +1,4 @@
1
1
  import { EventBus } from 'azure-net-tools';
2
2
  export declare const AppEvents: () => {
3
- bus: EventBus<"OnAsyncHelperError">;
3
+ bus: EventBus<any>;
4
4
  };
@@ -7,7 +7,7 @@ type PathRequiredShape<T, P extends string> = P extends `${infer Head}.${infer T
7
7
  [K in P]-?: NonNullable<T[K]>;
8
8
  } : unknown;
9
9
  type UnionToIntersection<U> = (U extends unknown ? (arg: U) => void : never) extends (arg: infer I) => void ? I : never;
10
- type RequiredByPaths<T, P extends string> = [P] extends [never] ? {} : UnionToIntersection<PathRequiredShape<T, P>>;
10
+ type RequiredByPaths<T, P extends string> = [P] extends [never] ? object : UnionToIntersection<PathRequiredShape<T, P>>;
11
11
  export interface FormConfig<FormData, Response, Initial extends Partial<FormData> = Partial<FormData>, RequiredPath extends string = never> {
12
12
  initialData?: InitialData<FormData, Initial>;
13
13
  required?: readonly RequiredPath[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-net/kit",
3
- "version": "3.0.55",
3
+ "version": "3.0.57",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",
@@ -109,10 +109,10 @@
109
109
  "svelte"
110
110
  ],
111
111
  "dependencies": {
112
- "azure-net-tools": "^1.1.2",
113
- "edges-svelte": "^2.2.0",
114
- "edges-svelte-translations": "^2.2.0",
115
- "ky": "^1.14.0"
112
+ "azure-net-tools": "^1.2.0",
113
+ "edges-svelte": "^2.2.1",
114
+ "edges-svelte-translations": "^2.2.1",
115
+ "ky": "^1.14.3"
116
116
  },
117
117
  "scripts": {
118
118
  "dev": "vite dev",