We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
format
ImageURI
1 parent e4f8e56 commit 24e2ce5Copy full SHA for 24e2ce5
src/library/customTypes/UniformResourceIdentifier/Data/Image/index.ts
@@ -15,7 +15,7 @@ class ImageURI
15
extends DataURI {
16
public static readonly fileType = 'image';
17
18
- private readonly _format: ImageURI_Format.Any;
+ public readonly format: ImageURI_Format.Any;
19
20
public constructor(
21
givenFormat: ImageURI_Format.Any,
@@ -27,11 +27,7 @@ class ImageURI
27
givenEncoding,
28
givenData,
29
);
30
- this._format = givenFormat;
31
- }
32
-
33
- public get format(): ImageURI['_format'] {
34
- return this._format;
+ this.format = givenFormat;
35
}
36
37
public override get mediaType(): DataURI['mediaType'] {
0 commit comments