@remit/data-ports 0.0.92 → 0.0.93
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.
|
@@ -363,9 +363,11 @@ export type AnyAccountSettingValue = z.infer<typeof BooleanSettingSchema | typeo
|
|
|
363
363
|
*/
|
|
364
364
|
export declare function parseAccountSettingValue<N extends AccountSettingNameValue>(name: N, value: unknown): AccountSettingValueFor<N>;
|
|
365
365
|
export declare function parseAccountSettingValue(name: StoredSettingName, value: unknown): AnyAccountSettingValue;
|
|
366
|
+
type SafeParseResult<T> = ReturnType<z.ZodType<T>["safeParse"]>;
|
|
366
367
|
/**
|
|
367
368
|
* Non-throwing variant: returns the zod SafeParse result so a caller with a
|
|
368
369
|
* recovery path can branch on `success`. Accepts composite names like above.
|
|
369
370
|
*/
|
|
370
|
-
export declare function safeParseAccountSettingValue<N extends AccountSettingNameValue>(name: N, value: unknown):
|
|
371
|
-
export declare function safeParseAccountSettingValue(name: StoredSettingName, value: unknown):
|
|
371
|
+
export declare function safeParseAccountSettingValue<N extends AccountSettingNameValue>(name: N, value: unknown): SafeParseResult<AccountSettingValueFor<N>>;
|
|
372
|
+
export declare function safeParseAccountSettingValue(name: StoredSettingName, value: unknown): SafeParseResult<AnyAccountSettingValue>;
|
|
373
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remit/data-ports",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.93",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@remit/api-zod-schemas": "*"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"zod": "^3.25.0"
|
|
34
|
+
"zod": "^3.25.0 || ^4.6.7"
|
|
35
35
|
},
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"publishConfig": {
|