Add note about CSSStyleDeclaration cast

This commit is contained in:
Alexander Marks 2019-07-21 11:11:30 -07:00
parent 554c261a83
commit 9a31484d9b

View File

@ -87,6 +87,12 @@ export class LinearProgressBase extends BaseElement {
getBuffer: () => this.bufferElement,
setStyle: (el: HTMLElement, property: string, value: string) =>
el.style
// TODO(aomarks) Consider moving this type to the
// MDCLinearProgressAdapter parameter type, but note that the
// "-webkit" prefixed CSS properties are not declared in
// CSSStyleDeclaration.
//
// Exclude read-only properties.
[property as
Exclude<keyof CSSStyleDeclaration, 'length'|'parentRule'>] =
value,