More generally, how to use ObjectStatic
functions with typescript ?
Let’s get an example:
class ParseSomething extends Parse.Object<{
text: string;
}> {
constructor(attr?: any) {
super("Something", attr);
}
}
const fetchSomethingObject = (objectId: string) =>
ParseSomething.createWithoutData(objectId).fetch();
When I highlight my fetchSomethingObject
I can see that the returned type is a Parse.Object
instead of a ParseSomething
(see screenshot attached).
Thank you