@artinet/types
Version:
A collection of useful types for the artinet.
37 lines • 973 B
TypeScript
import z from "zod";
export declare const BaseSchema: z.ZodObject<{
id: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
}, {
id: string;
}>;
export type Base = z.infer<typeof BaseSchema>;
export declare const RemoteServerSchema: z.ZodObject<{
id: z.ZodString;
} & {
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
url: string;
}, {
id: string;
url: string;
}>;
export type RemoteServer = z.infer<typeof RemoteServerSchema>;
export declare const WithKindSchema: z.ZodObject<{
kind: z.ZodString;
}, "strip", z.ZodTypeAny, {
kind: string;
}, {
kind: string;
}>;
export type WithKind = z.infer<typeof WithKindSchema>;
declare const literalSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
type Literal = z.infer<typeof literalSchema>;
type JSON = Literal | {
[key: string]: JSON;
} | JSON[];
export declare const JSONSchema: z.ZodType<JSON>;
export {};
//# sourceMappingURL=base.d.ts.map