TypeScript-DOM-lib-generator icon indicating copy to clipboard operation
TypeScript-DOM-lib-generator copied to clipboard

Property `aspectRatio` does not exist on type CSSStyleDecleration

Open chintuyadavsara opened this issue 3 years ago • 2 comments

Hi Team,

Even though aspect-ratio css property is hugely supported in all modern browsers. Its giving typescript error saying

Property aspectRatio does not exist on type CSSStyleDecleration image

🔎 Search Terms CSSStyleDeclaration aspectRatio

image

Could you please address this issue.

Thank you

chintuyadavsara avatar Jul 28 '22 09:07 chintuyadavsara

It is defined here. https://github.com/microsoft/TypeScript-DOM-lib-generator/blob/main/baselines/dom.generated.d.ts#L2742

It was added more than 1 year ago... Do you use a old version of typescript?

mathe42 avatar Jul 28 '22 10:07 mathe42

Thank you @mathe42 . Typescript version I'm using is 4.3

chintuyadavsara avatar Jul 29 '22 04:07 chintuyadavsara

TS versions older than 4.4 are not supported, you can try upgrade to the latest version, or at least to 4.4 and deploy https://www.npmjs.com/package/@types/web.

@github-actions close

saschanaz avatar Sep 18 '22 12:09 saschanaz

Closing because @saschanaz is one of the code-owners of this repository.

github-actions[bot] avatar Sep 18 '22 12:09 github-actions[bot]