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:
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