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