parse-community / parse-react

[EXPERIMENTAL] React, React Native, and React with SSR (e.g. Next.js) packages to interact with Parse Server backend
https://parseplatform.org/
MIT License
70 stars 27 forks source link

fixed EncodedParseQuery interface for react-ssr package #104

Closed Gr1mmz closed 2 years ago

Gr1mmz commented 2 years ago

The main problem that I found is wrong type for key "findResult?" inside interface EncodedParseQuery.

encodeParseQuery.findResult is always returns an array - empty array if nothing was founded or array of objects if query has a results.

Environment: NextJS, TypeScript