mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-16 08:25:42 +00:00
Fixed accessors
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user