@layerfig/config
Version:
Layer and runtime-validate type-safe configs for JavaScript apps.
21 lines (20 loc) • 911 B
TypeScript
import { LoadSourceOptions, Source$1 as Source } from "../../source-CJDueGqx.js";
import { z } from "zod/v4";
//#region src/sources/env-var.d.ts
declare const PartialEnvironmentVariableSourceOptions: z.ZodObject<{
prefix: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
prefixSeparator: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
separator: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
}, z.core.$strip>;
type PartialEnvironmentVariableSourceOptions = z.Infer<typeof PartialEnvironmentVariableSourceOptions>;
declare class EnvironmentVariableSource extends Source {
#private;
constructor(options?: PartialEnvironmentVariableSourceOptions);
loadSource({
runtimeEnv,
slotPrefix
}: LoadSourceOptions): Record<string, unknown>;
}
//#endregion
export { EnvironmentVariableSource, PartialEnvironmentVariableSourceOptions };
//# sourceMappingURL=index.d.ts.map