We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TypeScript Version: 2.0.3
Code
const textarea = document.createElement('textarea'); textarea.style.resize = 'none';
Expected behavior:
Actual behavior:
Property 'resize' does not exist on type 'CSSStyleDeclaration'
To workaround this I have created a new interface extending from CSSStyleDeclaration which does the trick for now.
CSSStyleDeclaration
interface CSSStyleDeclarationWithResize extends CSSStyleDeclaration { resize: string } const textarea = document.createElement('textarea'); const style: CSSStyleDeclarationWithResize = textarea.style as CSSStyleDeclarationWithResize; style.resize = 'none';
TypeScript Version: 2.0.3
Code
Expected behavior:
Actual behavior:
Property 'resize' does not exist on type 'CSSStyleDeclaration'To workaround this I have created a new interface extending from
CSSStyleDeclarationwhich does the trick for now.