Type 'Output' does not satisfy the constraint 'void | JSONValue'. Type 'Output' is not assignable to type 'JSONObject'. Property 'tasks' is incompatible with index signature. Type '(GetResult<{ id: string; description: string; time: string; isDone: boolean; userId: number; createdAt: Date; }, unknown> & {})[]' is not assignable to type 'JSONValue'.ts(2344)
Type 'Output' does not satisfy the constraint 'void | JSONValue'. Type 'Output' is not assignable to type 'JSONObject'. Property 'tasks' is incompatible with index signature. Type '(GetResult<{ id: string; description: string; time: string; isDone: boolean; userId: number; createdAt: Date; }, unknown> & {})[]' is not assignable to type 'JSONValue'.ts(2344)
Is there some issue with the example that I missed?
In most web apps, users send requests to the server and receive responses with some data. When the server responds quickly, the app feels responsive and smooth.