(file: HttpImportFile, raw: unknown)
| 98 | } |
| 99 | |
| 100 | function isOpenCollectionRoot(file: HttpImportFile, raw: unknown): boolean { |
| 101 | return ( |
| 102 | /(?:^|\/)opencollection\.ya?ml$/i.test(normalizePath(file.name)) |
| 103 | && isRecord(raw) |
| 104 | ) |
| 105 | } |
| 106 | |
| 107 | function isBundledCollection(raw: unknown): raw is UnknownRecord { |
| 108 | return isRecord(raw) && Array.isArray(raw.items) |
no test coverage detected