(obj: unknown)
| 143 | |
| 144 | // Distinguish single vs list response shapes |
| 145 | const isList = (obj: unknown): obj is GoogleFormsResponseList => |
| 146 | !!obj && typeof obj === 'object' && Array.isArray((obj as GoogleFormsResponseList).responses) |
| 147 | |
| 148 | if (isList(data)) { |
| 149 | const listData = data as GoogleFormsResponseList |