triangle-types 1.0.276 → 1.0.277

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ export declare class UserComment {
12
12
  constructor(user_comment: UserComment);
13
13
  static is(user_comment: any): user_comment is UserComment;
14
14
  }
15
- export declare class UserCommentAux {
15
+ export declare class UserCommentAux extends UserComment {
16
16
  readonly user: User;
17
17
  constructor(user_comment: UserCommentAux);
18
18
  static is(user_comment: any): user_comment is UserCommentAux;
@@ -30,12 +30,13 @@ export class UserComment {
30
30
  typeof user_comment.is_active === "boolean");
31
31
  }
32
32
  }
33
- export class UserCommentAux {
33
+ export class UserCommentAux extends UserComment {
34
34
  user;
35
35
  constructor(user_comment) {
36
36
  if (!UserCommentAux.is(user_comment)) {
37
37
  throw Error("Invalid Input.");
38
38
  }
39
+ super(user_comment);
39
40
  this.user = user_comment.user;
40
41
  }
41
42
  static is(user_comment) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.276",
3
+ "version": "1.0.277",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -38,13 +38,14 @@ export class UserComment {
38
38
  }
39
39
  }
40
40
 
41
- export class UserCommentAux {
41
+ export class UserCommentAux extends UserComment {
42
42
  readonly user : User
43
43
 
44
44
  constructor(user_comment : UserCommentAux) {
45
45
  if (!UserCommentAux.is(user_comment)) {
46
46
  throw Error("Invalid Input.")
47
47
  }
48
+ super(user_comment)
48
49
  this.user = user_comment.user
49
50
  }
50
51