(record: SnippetsLabRecord, key: string)
| 47 | } |
| 48 | |
| 49 | function getRecordArray(record: SnippetsLabRecord, key: string) { |
| 50 | const value = record[key] |
| 51 | return Array.isArray(value) ? value.filter(isRecord) : [] |
| 52 | } |
| 53 | |
| 54 | function getContents(parsed: unknown): SnippetsLabRecord | null { |
| 55 | if (!isRecord(parsed) || !isRecord(parsed.contents)) { |
no outgoing calls
no test coverage detected