Fixed accessors

This commit is contained in:
Alexander Cerutti
2023-04-24 15:20:45 +02:00
parent 772f359f78
commit e8763db527
2 changed files with 6 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ export default class Bundle {
private [filesSymbol]: { [key: string]: Buffer } = {};
private [mimeTypeSymbol]: string;
constructor(mimeType: `${Mime.type}/${Mime.subtype}`) {
public constructor(mimeType: `${Mime.type}/${Mime.subtype}`) {
if (!mimeType) {
throw new Error(Messages.BUNDLE.MIME_TYPE_MISSING);
}
@@ -50,7 +50,7 @@ export default class Bundle {
* @returns
*/
static freezable(
public static freezable(
mimeType: `${Mime.type}/${Mime.subtype}`,
): [Bundle, Function] {
const bundle = new Bundle(mimeType);
@@ -70,7 +70,7 @@ export default class Bundle {
* can be added any further.
*/
protected [freezeSymbol]() {
private [freezeSymbol]() {
if (this.isFrozen) {
return;
}