seniority/yaml
Every export of seniority/yaml, with its signature and doc comment: parse, YAMLException, plus 1 type.
YAML for configuration files, with no dependency (D-20260930-seniority-yaml).
import { parse, YAMLException } from 'seniority/yaml';Functions
parse
Read one YAML document into plain values. Throws YAMLException for anything outside the
subset above, and for input that is not YAML at all.
function parse(text: string): unknown;| Parameter | Type |
|---|---|
text | string |
Returns unknown
Classes
YAMLException
A document this parser cannot read, with the reason and where.
class YAMLException extends Error {
readonly reason: string;
readonly mark: Mark | undefined;
constructor(reason: string, mark?: Mark, snippet?: string);
}Interfaces
Mark
Where an error is, 0-based, in the shape of js-yaml's mark.
interface Mark {
line: number;
column: number;
position: number;
}seniority/find-up
Every export of seniority/find-up, with its signature and doc comment: findUpMultipleSync, findUpMultiple, findUpSync, findUp, findDownSync, findDown and 1 more, plus 3 types.
seniority/config
Every export of seniority/config, with its signature and doc comment: deepMerge, lineOf, packageLayer, loadWithExtends, candidates, discover, plus 3 types.