Skip to content

Commit 4f7bb09

Browse files
authored
Merge pull request #420 from danmarshall/master
set noImplicitAny to true
2 parents 9dcdf24 + d5a34a1 commit 4f7bb09

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/Attachment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export const AttachmentView = (props: {
148148
const attachment = props.attachment;
149149

150150
const onCardAction = (cardAction: CardAction) => cardAction &&
151-
(e => {
151+
((e: React.MouseEvent<HTMLElement>) => {
152152
props.onCardAction(cardAction.type, cardAction.value);
153153
e.stopPropagation();
154154
});

src/Chat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class Chat extends React.Component<ChatProps, {}> {
7373

7474
this.store.dispatch<ChatActions>({
7575
type: 'Set_Locale',
76-
locale: props.locale || window.navigator["userLanguage"] || window.navigator.language || 'en'
76+
locale: props.locale || (window.navigator as any)["userLanguage"] || window.navigator.language || 'en'
7777
});
7878

7979
if (props.formatOptions)
@@ -261,7 +261,7 @@ export const classList = (...args:(string | boolean)[]) => {
261261

262262
export const konsole = {
263263
log: (message?: any, ... optionalParams: any[]) => {
264-
if (typeof(window) !== 'undefined' && window["botchatDebug"] && message)
264+
if (typeof(window) !== 'undefined' && (window as any)["botchatDebug"] && message)
265265
console.log(message, ... optionalParams);
266266
}
267267
}

src/History.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class HistoryView extends React.Component<HistoryProps, {}> {
2727
private scrollToBottom = true;
2828

2929
private carouselActivity: WrappedActivity;
30-
private largeWidth;
30+
private largeWidth: number;
3131

3232
constructor(props: HistoryProps) {
3333
super(props);

src/Shell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ShellContainer extends React.Component<Props, {}> {
2828
this.props.sendMessage(this.props.inputText);
2929
}
3030

31-
private onKeyPress(e) {
31+
private onKeyPress(e: React.KeyboardEvent<HTMLInputElement>) {
3232
if (e.key === 'Enter')
3333
this.sendMessage();
3434
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"es2017"
99
],
1010
"module": "commonjs",
11-
"noImplicitAny": false,
11+
"noImplicitAny": true,
1212
"outDir": "./built/",
1313
"target": "es5",
1414
"sourceMap": true

0 commit comments

Comments
 (0)