@dra2020/dra-types 1.0.2 → 1.0.3

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,9 +2,10 @@ export interface Comment {
2
2
  userid: string;
3
3
  text: string;
4
4
  date: string;
5
+ recommend: number;
5
6
  }
6
7
  export interface CommentList {
7
- id: string;
8
+ id?: string;
8
9
  [commentid: string]: Comment | string;
9
10
  }
10
11
  export declare type LikeKind = 'like' | 'love' | 'wow' | 'angry' | 'funny';
@@ -13,10 +14,10 @@ export interface Like {
13
14
  kind: LikeKind;
14
15
  }
15
16
  export interface LikeList {
16
- id: string;
17
+ id?: string;
17
18
  [userid: string]: Like | string;
18
19
  }
19
20
  export interface UserLikes {
20
- id: string;
21
+ id?: string;
21
22
  [aid: string]: Like | string;
22
23
  }
package/lib/dra-types.ts CHANGED
@@ -4,12 +4,13 @@ export interface Comment
4
4
  userid: string;
5
5
  text: string;
6
6
  date: string;
7
+ recommend: number;
7
8
  }
8
9
 
9
10
  // Comment record associated with a map
10
11
  export interface CommentList
11
12
  {
12
- id: string;
13
+ id?: string;
13
14
  [commentid: string]: Comment | string; // Really just Comment but make TypeScript happy
14
15
  }
15
16
 
@@ -26,13 +27,13 @@ export interface Like
26
27
  // Record for likes associated with a map
27
28
  export interface LikeList
28
29
  {
29
- id: string;
30
+ id?: string;
30
31
  [userid: string]: Like | string; // Really just Like but make TypeScript happy
31
32
  }
32
33
 
33
34
  // Record for likes an individual user has performed
34
35
  export interface UserLikes
35
36
  {
36
- id: string;
37
+ id?: string;
37
38
  [aid: string]: Like | string; // Really just Like but make TypeScript happy
38
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/dra-types",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Shared types used between client and server.",
5
5
  "main": "dist/dra-types.js",
6
6
  "types": "./dist/all.d.ts",