Closed frankcollins3 closed 1 year ago
type Promise as GraphQL return data object:
👍 new Promise<waterCycleData[]>
👍 .then( (userdata: waterCycleData[]) => {
👍 interface waterCycleData { google_id: string, date: string, progress: number, weekday: string, status: any[] // believe it starts with false and changes to 'check' so cant be a string. users_id: number }
[11:41pm]
attempting to do: use interface for something other than Props
error:![Screen Shot 2023-06-19 at 11 23 32 PM](https://github.com/frankcollins3/fill_container/assets/73137934/cae78d85-1d74-459e-a900-ddfcb28eca74)
proposed approach: 0: do this client-side which will probably have the same issues.
1: tinker with syntax
2: consult with friend who helps in :any situation ---------> :any