Skip to content

Commit

Permalink
fix: update TypeScript version to 3.5.x and fix typing errors (#4853)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Goo authored Jul 2, 2019
1 parent b524a12 commit 0657504
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"ts-loader": "^6.0.3",
"ts-node": "^8.0.3",
"tslint": "^5.12.0",
"typescript": "^3.1.6",
"typescript": "^3.5.0",
"uglifyjs-webpack-plugin": "^2.1.3",
"url-search-params-polyfill": "^6.0.0",
"useragent": "^2.3.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/mdc-form-field/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ export class MDCFormField extends MDCComponent<MDCFormFieldFoundation> {
},
deregisterInteractionHandler: (evtType, handler) => {
if (this.label_) {
this.label_.removeEventListener(evtType, handler);
(this.label_ as HTMLElement).removeEventListener(evtType, handler);
}
},
registerInteractionHandler: (evtType, handler) => {
if (this.label_) {
this.label_.addEventListener(evtType, handler);
(this.label_ as HTMLElement).addEventListener(evtType, handler);
}
},
};
Expand Down
4 changes: 2 additions & 2 deletions packages/mdc-ripple/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class MDCRipple extends MDCComponent<MDCRippleFoundation> implements MDCR
deregisterDocumentInteractionHandler: (evtType, handler) =>
document.documentElement.removeEventListener(evtType, handler, applyPassive()),
deregisterInteractionHandler: (evtType, handler) =>
instance.root_.removeEventListener(evtType, handler, applyPassive()),
(instance.root_ as HTMLElement).removeEventListener(evtType, handler, applyPassive()),
deregisterResizeHandler: (handler) => window.removeEventListener('resize', handler),
getWindowPageOffset: () => ({x: window.pageXOffset, y: window.pageYOffset}),
isSurfaceActive: () => matches(instance.root_, ':active'),
Expand All @@ -59,7 +59,7 @@ export class MDCRipple extends MDCComponent<MDCRippleFoundation> implements MDCR
registerDocumentInteractionHandler: (evtType, handler) =>
document.documentElement.addEventListener(evtType, handler, applyPassive()),
registerInteractionHandler: (evtType, handler) =>
instance.root_.addEventListener(evtType, handler, applyPassive()),
(instance.root_ as HTMLElement).addEventListener(evtType, handler, applyPassive()),
registerResizeHandler: (handler) => window.addEventListener('resize', handler),
removeClass: (className) => instance.root_.classList.remove(className),
updateCssVariable: (varName, value) => (instance.root_ as HTMLElement).style.setProperty(varName, value),
Expand Down

0 comments on commit 0657504

Please sign in to comment.