diff --git a/package-lock.json b/package-lock.json index 7293fae73c9..1f420a100e7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24096,9 +24096,9 @@ "dev": true }, "typescript": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.2.2.tgz", - "integrity": "sha512-VCj5UiSyHBjwfYacmDuc/NOk4QQixbE+Wn7MFJuS0nRuPQbof132Pw4u53dm264O8LPc2MVsc7RJNml5szurkg==", + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.2.tgz", + "integrity": "sha512-7KxJovlYhTX5RaRbUdkAXN1KUZ8PwWlTzQdHV6xNqvuFOs7+WBo10TQUqT19Q/Jz2hk5v9TQDIhyLhhJY4p5AA==", "dev": true }, "uglify-js": { diff --git a/package.json b/package.json index 7522632e036..6406914e746 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/mdc-form-field/component.ts b/packages/mdc-form-field/component.ts index 8c6835abf44..f109cbc0873 100644 --- a/packages/mdc-form-field/component.ts +++ b/packages/mdc-form-field/component.ts @@ -66,12 +66,12 @@ export class MDCFormField extends MDCComponent { }, 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); } }, }; diff --git a/packages/mdc-ripple/component.ts b/packages/mdc-ripple/component.ts index 2adf9900e1c..d36555600b4 100644 --- a/packages/mdc-ripple/component.ts +++ b/packages/mdc-ripple/component.ts @@ -50,7 +50,7 @@ export class MDCRipple extends MDCComponent 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'), @@ -59,7 +59,7 @@ export class MDCRipple extends MDCComponent 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),