(
data: unknown,
options: StringifyOptions = {},
)
| 107 | * @returns A YAML string. |
| 108 | */ |
| 109 | export function stringify( |
| 110 | data: unknown, |
| 111 | options: StringifyOptions = {}, |
| 112 | ): string { |
| 113 | const state = new DumperState({ |
| 114 | ...options, |
| 115 | schema: SCHEMA_MAP.get(options.schema!)!, |
| 116 | }); |
| 117 | return state.stringify(data); |
| 118 | } |
no test coverage detected