(value: unknown)
| 407 | } |
| 408 | |
| 409 | export function readIndexStatus(value: unknown): IndexStatusResult { |
| 410 | const raw = record(value); |
| 411 | return { |
| 412 | project: toText(raw['project']), |
| 413 | nodes: toOptionalNumber(raw['nodes']), |
| 414 | edges: toOptionalNumber(raw['edges']), |
| 415 | status: toText(raw['status']), |
| 416 | root_path: toText(raw['root_path']), |
| 417 | }; |
| 418 | } |
| 419 | |
| 420 | export function readCodeSnippet(value: unknown): CodeSnippetResult { |
| 421 | const raw = record(value); |
no test coverage detected