UNPKG

@layerfig/config

Version:

Layer and runtime-validate type-safe configs for JavaScript apps.

22 lines (20 loc) 488 B
import { Source } from "../../source-BvmiqUNz.js"; //#region src/sources/object.ts var ObjectSource = class extends Source { #object; constructor(object) { super(); this.#object = object; } loadSource({ slotPrefix, runtimeEnv }) { const replacedObject = this.maybeReplaceSlotFromValue({ value: JSON.stringify(this.#object), slotPrefix, runtimeEnv }); return JSON.parse(replacedObject); } }; //#endregion export { ObjectSource }; //# sourceMappingURL=index.js.map