You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an API wrapper (and interfaces for models) for the frontend. Functions can be async and should belong to their 'model' or interface on the frontend.
Pseudocode Wrapper Example:
// defined in ./utils/typesinterfaceModel{id: string;
...
}// utilitiesexportModelAPI{get: async({params})=>Promise<Model[]>// function that returns promise for getting all of this Model,...}
Create an API wrapper (and interfaces for models) for the frontend. Functions can be async and should belong to their 'model' or interface on the frontend.
Pseudocode Wrapper Example:
in usage
The text was updated successfully, but these errors were encountered: