UNPKG

openpkg-cli

Version:

OpenAPI-like specification generator for TypeScript packages

20 lines (19 loc) 856 B
import { z } from "zod"; declare const stringList: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>; declare const openPkgConfigSchema: z.ZodObject<{ include: z.ZodOptional<typeof stringList> exclude: z.ZodOptional<typeof stringList> plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">> }>; type OpenPkgConfigInput = z.infer<typeof openPkgConfigSchema>; interface NormalizedOpenPkgConfig { include?: string[]; exclude?: string[]; plugins?: unknown[]; } interface LoadedOpenPkgConfig extends NormalizedOpenPkgConfig { filePath: string; } declare const loadOpenPkgConfigInternal: (cwd: string) => Promise<LoadedOpenPkgConfig | null>; declare const define: (config: OpenPkgConfigInput) => OpenPkgConfigInput; export { loadOpenPkgConfigInternal as loadOpenPkgConfig, define as defineConfig, NormalizedOpenPkgConfig, LoadedOpenPkgConfig };