Why do some properties in ts use'.' Access will report not exist and ['property'] access properties will be OK?

typescript introduces echarts to use gradient LinearGradient

pass "." Cannot access LinearGradient

error report: Property "LinearGradient" does not exist on type" Graphic"
import * as echarts  from "echarts/lib/echarts";
 
new echarts.graphic.LinearGradient 

// Property "LinearGradient" does not exist on type "Graphic".

this allows you to use LinearGradient

color: new echarts.graphic["LinearGradient"]( // tslint:disable-line

where do I need to configure to use echarts.graphic.LinearGradient without reporting an error?

Why do some properties in ts use"." Access will report not exist
and ["property"] access properties will be OK?

May.08,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38ac2-2c126.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38ac2-2c126.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?