triangle-types 1.0.50 → 1.0.51
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.
|
@@ -2,7 +2,6 @@ export class UserPrism {
|
|
|
2
2
|
user_prism_id;
|
|
3
3
|
user_id;
|
|
4
4
|
prism_id;
|
|
5
|
-
target_id;
|
|
6
5
|
constructor(user_prism) {
|
|
7
6
|
if (!UserPrism.is(user_prism)) {
|
|
8
7
|
throw Error("Invalid input.");
|
|
@@ -10,13 +9,11 @@ export class UserPrism {
|
|
|
10
9
|
this.user_prism_id = user_prism.user_prism_id;
|
|
11
10
|
this.user_id = user_prism.user_id;
|
|
12
11
|
this.prism_id = user_prism.prism_id;
|
|
13
|
-
this.target_id = user_prism.target_id;
|
|
14
12
|
}
|
|
15
13
|
static is(user_prism) {
|
|
16
14
|
return (user_prism !== undefined &&
|
|
17
15
|
typeof user_prism.user_prism_id === "string" &&
|
|
18
16
|
typeof user_prism.user_id === "string" &&
|
|
19
|
-
typeof user_prism.prism_id === "string"
|
|
20
|
-
typeof user_prism.target_id === "string");
|
|
17
|
+
typeof user_prism.prism_id === "string");
|
|
21
18
|
}
|
|
22
19
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,6 @@ export class UserPrism {
|
|
|
2
2
|
readonly user_prism_id : string
|
|
3
3
|
readonly user_id : string
|
|
4
4
|
readonly prism_id : string
|
|
5
|
-
readonly target_id : string
|
|
6
5
|
|
|
7
6
|
constructor(user_prism : any) {
|
|
8
7
|
if (!UserPrism.is(user_prism)) {
|
|
@@ -11,7 +10,6 @@ export class UserPrism {
|
|
|
11
10
|
this.user_prism_id = user_prism.user_prism_id
|
|
12
11
|
this.user_id = user_prism.user_id
|
|
13
12
|
this.prism_id = user_prism.prism_id
|
|
14
|
-
this.target_id = user_prism.target_id
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
static is(user_prism : any) : user_prism is UserPrism {
|
|
@@ -19,8 +17,7 @@ export class UserPrism {
|
|
|
19
17
|
user_prism !== undefined &&
|
|
20
18
|
typeof user_prism.user_prism_id === "string" &&
|
|
21
19
|
typeof user_prism.user_id === "string" &&
|
|
22
|
-
typeof user_prism.prism_id === "string"
|
|
23
|
-
typeof user_prism.target_id === "string"
|
|
20
|
+
typeof user_prism.prism_id === "string"
|
|
24
21
|
)
|
|
25
22
|
}
|
|
26
23
|
}
|