mirror of
https://github.com/material-components/material-web.git
synced 2024-10-27 14:07:17 +03:00
Add note about CSSStyleDeclaration cast
This commit is contained in:
parent
554c261a83
commit
9a31484d9b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user