Closed karlhorky closed 3 weeks ago
Once it's possible to check types of Expo API Routes responses, we can enforce that those types are being added, similar to how we enforce NextResponse<> types for route.ts files:
NextResponse<>
route.ts
https://github.com/upleveled/eslint-config-upleveled/blob/6c24362091950278f1b94bbc5aaf4de7f5aebb04/index.js#L915-L931
ExpoApiResponse type added in this commit in the Expo example repo:
ExpoApiResponse
Once it's possible to check types of Expo API Routes responses, we can enforce that those types are being added, similar to how we enforce
NextResponse<>
types forroute.ts
files:https://github.com/upleveled/eslint-config-upleveled/blob/6c24362091950278f1b94bbc5aaf4de7f5aebb04/index.js#L915-L931