(file: ImportFile)
| 12 | type RaycastRecord = Record<string, unknown> |
| 13 | |
| 14 | function parseJsonFile(file: ImportFile): unknown | null { |
| 15 | try { |
| 16 | return JSON.parse(file.content) |
| 17 | } |
| 18 | catch { |
| 19 | return null |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | function getSnippetRecords(parsed: unknown): RaycastRecord[] | null { |
| 24 | if (Array.isArray(parsed)) { |
no outgoing calls
no test coverage detected