How to use `createWithoutData` with Typescript

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) =>

When I highlight my fetchSomethingObject I can see that the returned type is a Parse.Object instead of a ParseSomething :frowning: (see screenshot attached).

Thank you

Maybe do const fetchSomethingObject = (objectId: string) => ParseSomething.createWithoutData(objectId).fetch() as ParseSomething;?

Yes that’s what I did in the end. I was wondering if there is a better way. Thanks :pray:t2: