Skip to content

Commit

Permalink
fix(veto): expose VNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
toxsick committed Apr 12, 2024
1 parent 80260f1 commit 8138052
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/veto/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type {
RefinementCtx as VRefinementCtx,
} from 'zod';
import type { VJson, VJsonObject } from './types/json/json';
import type { VNumber } from './types/number/number';
import type { VObject } from './types/object/object';
import type { VString } from './types/string/string';
import type {
Expand Down Expand Up @@ -48,6 +49,7 @@ export type {
vInfer,
VJson,
VJsonObject,
VNumber,
VObject,
VRefinementCtx,
VString,
Expand Down
4 changes: 4 additions & 0 deletions packages/veto/src/types/number/number.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import type { ZodNumber } from 'zod';

import { z } from 'zod';

export type VNumber = ZodNumber;

export default z.number;

0 comments on commit 8138052

Please sign in to comment.