@taqueria/protocol
Version:
A TypeScript package which contains types that are to be shared between @taqueria/node-sdk and @taqueria/taqueria.
134 lines • 7.08 kB
TypeScript
import { TaqError } from '@taqueria/protocol/TaqError';
import { FutureInstance } from 'fluture';
import { Option } from '@taqueria/protocol/types';
import { Option as OptionStrict } from '@taqueria/protocol/out/types-strict';
export type { OptionStrict as Option };
export declare const from: (input: unknown) => OptionStrict;
export declare const create: (input: Option) => OptionStrict;
export declare const of: (input: unknown) => FutureInstance<TaqError, OptionStrict>;
export declare const make: (input: Omit<OptionStrict, "__type">) => FutureInstance<TaqError, OptionStrict>;
export declare const schemas: {
rawSchema: import("zod").ZodObject<{
shortFlag: import("zod").ZodOptional<import("zod").ZodString>;
flag: import("zod").ZodString;
description: import("zod").ZodString;
defaultValue: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>;
type: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"string">, import("zod").ZodLiteral<"number">, import("zod").ZodLiteral<"boolean">, import("zod").ZodLiteral<"count">]>>;
required: import("zod").ZodOptional<import("zod").ZodBoolean>;
boolean: import("zod").ZodOptional<import("zod").ZodBoolean>;
choices: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
}, "strip", import("zod").ZodTypeAny, {
description: string;
flag: string;
boolean?: boolean | undefined;
required?: boolean | undefined;
type?: "string" | "number" | "boolean" | "count" | undefined;
shortFlag?: string | undefined;
defaultValue?: string | number | boolean | undefined;
choices?: string[] | undefined;
}, {
description: string;
flag: string;
boolean?: boolean | undefined;
required?: boolean | undefined;
type?: "string" | "number" | "boolean" | "count" | undefined;
shortFlag?: string | undefined;
defaultValue?: string | number | boolean | undefined;
choices?: string[] | undefined;
}>;
schema: import("zod").ZodEffects<import("zod").ZodObject<{
shortFlag: import("zod").ZodOptional<import("zod").ZodString>;
flag: import("zod").ZodString;
description: import("zod").ZodString;
defaultValue: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>;
type: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"string">, import("zod").ZodLiteral<"number">, import("zod").ZodLiteral<"boolean">, import("zod").ZodLiteral<"count">]>>;
required: import("zod").ZodOptional<import("zod").ZodBoolean>;
boolean: import("zod").ZodOptional<import("zod").ZodBoolean>;
choices: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
}, "strip", import("zod").ZodTypeAny, {
description: string;
flag: string;
boolean?: boolean | undefined;
required?: boolean | undefined;
type?: "string" | "number" | "boolean" | "count" | undefined;
shortFlag?: string | undefined;
defaultValue?: string | number | boolean | undefined;
choices?: string[] | undefined;
}, {
description: string;
flag: string;
boolean?: boolean | undefined;
required?: boolean | undefined;
type?: "string" | "number" | "boolean" | "count" | undefined;
shortFlag?: string | undefined;
defaultValue?: string | number | boolean | undefined;
choices?: string[] | undefined;
}>, OptionStrict, {
description: string;
flag: string;
boolean?: boolean | undefined;
required?: boolean | undefined;
type?: "string" | "number" | "boolean" | "count" | undefined;
shortFlag?: string | undefined;
defaultValue?: string | number | boolean | undefined;
choices?: string[] | undefined;
}>;
};
export declare const rawSchema: import("zod").ZodObject<{
shortFlag: import("zod").ZodOptional<import("zod").ZodString>;
flag: import("zod").ZodString;
description: import("zod").ZodString;
defaultValue: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>;
type: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"string">, import("zod").ZodLiteral<"number">, import("zod").ZodLiteral<"boolean">, import("zod").ZodLiteral<"count">]>>;
required: import("zod").ZodOptional<import("zod").ZodBoolean>;
boolean: import("zod").ZodOptional<import("zod").ZodBoolean>;
choices: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
}, "strip", import("zod").ZodTypeAny, {
description: string;
flag: string;
boolean?: boolean | undefined;
required?: boolean | undefined;
type?: "string" | "number" | "boolean" | "count" | undefined;
shortFlag?: string | undefined;
defaultValue?: string | number | boolean | undefined;
choices?: string[] | undefined;
}, {
description: string;
flag: string;
boolean?: boolean | undefined;
required?: boolean | undefined;
type?: "string" | "number" | "boolean" | "count" | undefined;
shortFlag?: string | undefined;
defaultValue?: string | number | boolean | undefined;
choices?: string[] | undefined;
}>;
export declare const internalSchema: import("zod").ZodObject<{
shortFlag: import("zod").ZodOptional<import("zod").ZodString>;
flag: import("zod").ZodString;
description: import("zod").ZodString;
defaultValue: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>;
type: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"string">, import("zod").ZodLiteral<"number">, import("zod").ZodLiteral<"boolean">, import("zod").ZodLiteral<"count">]>>;
required: import("zod").ZodOptional<import("zod").ZodBoolean>;
boolean: import("zod").ZodOptional<import("zod").ZodBoolean>;
choices: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
}, "strip", import("zod").ZodTypeAny, {
description: string;
flag: string;
boolean?: boolean | undefined;
required?: boolean | undefined;
type?: "string" | "number" | "boolean" | "count" | undefined;
shortFlag?: string | undefined;
defaultValue?: string | number | boolean | undefined;
choices?: string[] | undefined;
}, {
description: string;
flag: string;
boolean?: boolean | undefined;
required?: boolean | undefined;
type?: "string" | "number" | "boolean" | "count" | undefined;
shortFlag?: string | undefined;
defaultValue?: string | number | boolean | undefined;
choices?: string[] | undefined;
}>;
export type t = OptionStrict;
//# sourceMappingURL=Option.d.ts.map