diff --git a/dataTypes.ts b/dataTypes.ts index 2da2a57..28a7d2c 100644 --- a/dataTypes.ts +++ b/dataTypes.ts @@ -27,11 +27,7 @@ export class Playlist { } } export class PlaylistDescription { - public title: string; - - public listener: string; - - constructor(title: string, listener: string) { + constructor(public title: string, public listener: string) { this.title = title; this.listener = listener; } diff --git a/dist/dataTypes.js b/dist/dataTypes.js index 67e29aa..1697621 100644 --- a/dist/dataTypes.js +++ b/dist/dataTypes.js @@ -65,6 +65,8 @@ var PlaylistDescription = /** @class */ (function () { function PlaylistDescription(title, listener) { this.title = title; this.listener = listener; + this.title = title; + this.listener = listener; } return PlaylistDescription; }()); diff --git a/package.json b/package.json index 528cf48..a1f8553 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stuen-common", - "version": "1.2.2", + "version": "1.2.3", "main": "dist/common.js", "type": "commonjs", "types": "dist/common.d.ts",