triangle-types 1.0.15 → 1.0.16
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.
|
@@ -4,7 +4,7 @@ export declare function is_scout_type_id(scout_type_id: any): scout_type_id is S
|
|
|
4
4
|
export declare class Scout {
|
|
5
5
|
readonly scout_id: string;
|
|
6
6
|
readonly scout_type_id: ScoutTypeID;
|
|
7
|
-
readonly
|
|
7
|
+
readonly number: number;
|
|
8
8
|
readonly name: string;
|
|
9
9
|
readonly [x: string]: any;
|
|
10
10
|
constructor(scout: any);
|
|
@@ -5,7 +5,7 @@ export function is_scout_type_id(scout_type_id) {
|
|
|
5
5
|
export class Scout {
|
|
6
6
|
scout_id;
|
|
7
7
|
scout_type_id;
|
|
8
|
-
|
|
8
|
+
number;
|
|
9
9
|
name;
|
|
10
10
|
constructor(scout) {
|
|
11
11
|
if (!Scout.is(scout)) {
|
|
@@ -13,14 +13,14 @@ export class Scout {
|
|
|
13
13
|
}
|
|
14
14
|
this.scout_id = scout.scout_id;
|
|
15
15
|
this.scout_type_id = scout.scout_type_id;
|
|
16
|
-
this.
|
|
16
|
+
this.number = scout.number;
|
|
17
17
|
this.name = scout.name;
|
|
18
18
|
}
|
|
19
19
|
static is(scout) {
|
|
20
20
|
return (scout !== undefined &&
|
|
21
21
|
typeof scout.scout_id === "string" &&
|
|
22
22
|
is_scout_type_id(scout.scout_type_id) &&
|
|
23
|
-
typeof scout.
|
|
23
|
+
typeof scout.number === "number" &&
|
|
24
24
|
typeof scout.name === "string");
|
|
25
25
|
}
|
|
26
26
|
}
|
package/package.json
CHANGED
package/src/types/scout/Scout.ts
CHANGED
|
@@ -9,7 +9,7 @@ export function is_scout_type_id(scout_type_id : any) : scout_type_id is ScoutTy
|
|
|
9
9
|
export class Scout {
|
|
10
10
|
readonly scout_id : string
|
|
11
11
|
readonly scout_type_id : ScoutTypeID
|
|
12
|
-
readonly
|
|
12
|
+
readonly number : number
|
|
13
13
|
readonly name : string
|
|
14
14
|
readonly [x : string] : any
|
|
15
15
|
|
|
@@ -19,7 +19,7 @@ export class Scout {
|
|
|
19
19
|
}
|
|
20
20
|
this.scout_id = scout.scout_id
|
|
21
21
|
this.scout_type_id = scout.scout_type_id
|
|
22
|
-
this.
|
|
22
|
+
this.number = scout.number
|
|
23
23
|
this.name = scout.name
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -28,7 +28,7 @@ export class Scout {
|
|
|
28
28
|
scout !== undefined &&
|
|
29
29
|
typeof scout.scout_id === "string" &&
|
|
30
30
|
is_scout_type_id(scout.scout_type_id) &&
|
|
31
|
-
typeof scout.
|
|
31
|
+
typeof scout.number === "number" &&
|
|
32
32
|
typeof scout.name === "string"
|
|
33
33
|
)
|
|
34
34
|
}
|