@ptolemy2002/regex-utils 2.2.2 → 2.2.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +1 -5
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -19,11 +19,7 @@ export type ZodValidator<O> = (v: O) => boolean;
19
19
  export type ZodValidatorWithErrors<O> = (v: O) => true | string | string[];
20
20
  export declare function interpretZodError(e: ZodError): string | string[] | null;
21
21
  export type ZodSafeParseable<O> = {
22
- safeParse: (v: unknown) => {
23
- success: boolean;
24
- data?: O;
25
- error?: ZodError;
26
- };
22
+ safeParse: (v: unknown) => z.SafeParseReturnType<unknown, O>;
27
23
  };
28
24
  export declare function zodValidate<O>(p: ZodSafeParseable<O>): ZodValidator<O>;
29
25
  export declare function zodValidateWithErrors<O>(p: ZodSafeParseable<O>): ZodValidatorWithErrors<O>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptolemy2002/regex-utils",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",