Make Img-attributes readonly

This commit is contained in:
pietervdvn 2022-07-26 09:56:07 +02:00
parent 4f488fab86
commit 9b40ccd652

View file

@ -2,9 +2,10 @@ import {Utils} from "../../Utils";
import BaseUIElement from "../BaseUIElement";
export default class Img extends BaseUIElement {
private _src: string;
private readonly _src: string;
private readonly _rawSvg: boolean;
private _options: { fallbackImage?: string };
private readonly _options: { readonly fallbackImage?: string };
constructor(src: string, rawSvg = false, options?: {
fallbackImage?: string