initial commit
This commit is contained in:
16
packages/db/shared/helpers/json-helpers.d.ts
vendored
Normal file
16
packages/db/shared/helpers/json-helpers.d.ts
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
export type JsonPrimitive = string | number | boolean | null;
|
||||
export type JsonValue = JsonPrimitive | JsonValue[] | {
|
||||
[k: string]: JsonValue;
|
||||
};
|
||||
export type InputJsonValue = JsonPrimitive | InputJsonValue[] | {
|
||||
[k: string]: InputJsonValue | null;
|
||||
};
|
||||
export type NullableJsonInput = JsonValue | 'JsonNull' | 'DbNull' | null;
|
||||
export declare const transformJsonNull: (v?: NullableJsonInput) => JsonValue;
|
||||
export declare const JsonValueSchema: z.ZodType<JsonValue>;
|
||||
export declare const InputJsonValueSchema: z.ZodType<InputJsonValue>;
|
||||
export declare const NullableJsonValue: z.ZodEffects<z.ZodUnion<[z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>, z.ZodLiteral<"DbNull">, z.ZodLiteral<"JsonNull">, z.ZodLiteral<null>]>, string | number | boolean | JsonValue[] | {
|
||||
[k: string]: JsonValue;
|
||||
} | null, JsonValue>;
|
||||
//# sourceMappingURL=json-helpers.d.ts.map
|
||||
Reference in New Issue
Block a user