This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
# schemable-class
|
# zod-schema-class
|
||||||
|
|
||||||
Create TypeScript classes out of Zod schemas
|
Create TypeScript classes out of Zod schemas
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { Opaque } from "type-fest"
|
|||||||
import { z } from "zod"
|
import { z } from "zod"
|
||||||
|
|
||||||
|
|
||||||
export type JsonifiedBigInt = Opaque<string, "@thilawyn/schemable-class/JsonifiedBigInt">
|
export type JsonifiedBigInt = Opaque<string, "@thilawyn/zod-schema-class/JsonifiedBigInt">
|
||||||
|
|
||||||
|
|
||||||
export function jsonifyBigIntSchema<S extends z.ZodBigInt>(schema: S) {
|
export function jsonifyBigIntSchema<S extends z.ZodBigInt>(schema: S) {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { Opaque } from "type-fest"
|
|||||||
import { z } from "zod"
|
import { z } from "zod"
|
||||||
|
|
||||||
|
|
||||||
export type JsonifiedDate = Opaque<string, "@thilawyn/schemable-class/JsonifiedDate">
|
export type JsonifiedDate = Opaque<string, "@thilawyn/zod-schema-class/JsonifiedDate">
|
||||||
|
|
||||||
|
|
||||||
export function jsonifyDateSchema<S extends z.ZodDate>(schema: S) {
|
export function jsonifyDateSchema<S extends z.ZodDate>(schema: S) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { Opaque } from "type-fest"
|
|||||||
import { z } from "zod"
|
import { z } from "zod"
|
||||||
|
|
||||||
|
|
||||||
export type JsonifiedDecimal = Opaque<string, "@thilawyn/schemable-class/JsonifiedDecimal">
|
export type JsonifiedDecimal = Opaque<string, "@thilawyn/zod-schema-class/JsonifiedDecimal">
|
||||||
|
|
||||||
|
|
||||||
export function jsonifyDecimalSchema<
|
export function jsonifyDecimalSchema<
|
||||||
|
|||||||
Reference in New Issue
Block a user