Skip to content

Commit 144af20

Browse files
committed
refactor(library/URI): renames mediaType to identifier in DataURI
1 parent 9e669fc commit 144af20

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/library/customTypes/UniformResourceIdentifier/Data/Image/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ImageURI
3434
return this._format;
3535
}
3636

37-
public override get mediaType(): DataURI['mediaType'] {
37+
public override get identifier(): DataURI['identifier'] {
3838
const computedMediaType = new MediaIdentifier(
3939
ImageURI.fileType,
4040
null,

src/library/customTypes/UniformResourceIdentifier/Data/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class DataURI
3232
this._data = givenData;
3333
}
3434

35-
public get mediaType(): Exclude<DataURI['_identifier'], null> {
35+
public get identifier(): Exclude<DataURI['_identifier'], null> {
3636
if (
3737
this._identifier === null
3838
) return Attempt.abandon('Media type either needs to be initialized or overridden');
@@ -66,7 +66,7 @@ class DataURI
6666

6767
public override get path(): NonTrivialString {
6868
const orderedPathComponents = [
69-
this.mediaType.serialized,
69+
this.identifier.serialized,
7070
this.serializableEncoding,
7171
this.serializableData,
7272
] as const;

0 commit comments

Comments
 (0)