(name: string)
| 352 | if (typeof categories === 'string') categories = [categories]; |
| 353 | |
| 354 | const filtered = categories.map((cat) => { |
| 355 | const lib = STANDARD_LIBRARIES.find((l) => l.name === cat); |
| 356 | if (!lib) throw new Error(`Unknown library category "${cat}"`); |
| 357 | return lib; |
| 358 | }); |
| 359 | |
| 360 | return Object.freeze(sortLibraries(filtered)); |
| 361 | } |
no test coverage detected