(
content: string,
options: ParseOptions = {},
)
| 118 | * @returns Array of parsed documents. |
| 119 | */ |
| 120 | export function parseAll( |
| 121 | content: string, |
| 122 | options: ParseOptions = {}, |
| 123 | ): unknown[] { |
| 124 | content = sanitizeInput(content); |
| 125 | const state = new LoaderState(content, { |
| 126 | ...options, |
| 127 | schema: SCHEMA_MAP.get(options.schema!)!, |
| 128 | }); |
| 129 | return [...state.readDocuments()]; |
| 130 | } |
no test coverage detected