parseYaml
functionfunction parseYaml<T>(content: string, filePath?: string): Promise<T>;Parse a YAML string into a typed value.
Requires the yaml peer dependency to be installed.
PARAMETERS
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| content | string | The YAML string to parse |
| filePath? | string | Optional file path for error messages |
RETURNS
Promise<T>TYPE PARAMETERS
T=unknown