I'm curious about the feasibility of adding additional functions to a class prototype in Typescript.
Here's my dilemma: I have a file containing a class, for example image.ts:
export class Image {
b64img: string;
}
Since this class is generated, I am unable to directly add methods to it. Furthermore, I am utilizing this class in other generated classes, making it impossible to create a new class that extends Image for the purpose of adding functions.
Is there a way for me to include a function in a separate file that can be used on all instances of the Image class?
Thank you