@loanscope/config
v0.1.1
Published
YAML / JSON scenario parser with zod boundary validation for LoanScope mortgage transactions, quick-quote inputs, and simulation plans.
Maintainers
Readme
@loanscope/config
YAML / JSON scenario parser with zod boundary validation. Accepts authored scenario files (transaction-shaped, quick-quote-shaped, or simulation-plan-shaped) and produces validated Transaction / QuickQuoteInput / SimulationPlan values that the LoanScope engine and CLI consume.
Validation is strict at the file boundary so every downstream package can rely on fully-typed inputs without re-validating.
Install
pnpm add @loanscope/config @loanscope/domainUsage
import { loadConfigFile } from "@loanscope/config";
const parsed = loadConfigFile("./scenarios/default.yaml");
if (parsed.transaction) {
// typed Transaction
}Part of the LoanScope monorepo
See the repository root for the full list of @loanscope/* packages, the underwriting engine, and the CLI.
License
MIT
