<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@easyops-cn/brick-next-pipes](./brick-next-pipes.md) &gt; [yaml](./brick-next-pipes.yaml.md)

## yaml() function

解析一个 YAML 格式的字符串（反序列化）。

 Serialization

**Signature:**

```typescript
export declare function yaml(value: string): unknown;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  value | string | YAML 格式的字符串。 |

**Returns:**

unknown

返回解析后的值，如果解析失败返回 `undefined`<!-- -->。

