Closed 6mp closed 1 year ago
References #108
Use new AirtableResponse type to ensure errors relating to airtable fetches are communicated to the client.
Also renames Record to AirtableRecord to avoid confusion with the builtin type Record
Record
AirtableRecord
export type AirtableResponse<T> = | { kind: "success"; records: AirtableRecord<T>[]; error?: never } | { kind: "error"; error: string; records?: never };
Handling these on the client still needs some implementation though.
This PR is being deployed to Railway 🚅
admin-portal: ◻️ REMOVED
References #108
Use new AirtableResponse type to ensure errors relating to airtable fetches are communicated to the client.
Also renames
Record
toAirtableRecord
to avoid confusion with the builtin typeRecord
Handling these on the client still needs some implementation though.