Skip to content

Commit cdb91ce

Browse files
committed
fine tune activity definitions
1 parent 90fa7e5 commit cdb91ce

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

.npmignore

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
built/*.js.map
2-
node_modules
3-
samples
4-
src
5-
test
6-
tsconfig.json
7-
*.config.js
8-
*.js.map
9-
.gitattributes
10-
.gitignore
11-
.npmignore
12-
.vscode
1+
/built/*.js.map
2+
/node_modules
3+
/samples
4+
/test
5+
/tsconfig.json
6+
/*.config.js
7+
/*.js.map
8+
/.gitattributes
9+
/.gitignore
10+
/.npmignore
11+
/.vscode

directLine.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export interface IActivity {
161161
id: string;
162162
};
163163
eTag?: string;
164-
from?: User;
164+
from: User;
165165
id?: string;
166166
timestamp?: string;
167167
}
@@ -179,6 +179,7 @@ export interface Typing extends IActivity {
179179
type: "typing";
180180
}
181181
export interface EventActivity extends IActivity {
182+
type: "event",
182183
name: string,
183184
value: any
184185
}

src/directLine.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export interface IActivity {
171171
channelId?: string,
172172
conversation?: { id: string },
173173
eTag?: string,
174-
from?: User,
174+
from: User,
175175
id?: string,
176176
timestamp?: string
177177
}
@@ -193,7 +193,7 @@ export interface Typing extends IActivity {
193193
}
194194

195195
export interface EventActivity extends IActivity {
196-
type: 'event',
196+
type: "event",
197197
name: string,
198198
value: any
199199
}

0 commit comments

Comments
 (0)