GoogleWebComponents / google-chart

Google Charts API web components
https://www.webcomponents.org/element/@google-web-components/google-chart/elements/google-chart
Apache License 2.0
358 stars 130 forks source link

Initial tsconfig.json #274

Closed rslawik closed 4 years ago

rslawik commented 4 years ago

Add dependency on typescript and typings for google.visualization. There is no integration with tsc yet - it can be run manually.

Running tsc manually reports 36 errors. Some of them are trivial to fix, so I will fix them in a followup PR. The other ones are a bit more complicated. Example 1: subtle difference between JS compiler and TS compiler when it comes to {property: string | undefined} where the former treats this property as optional and the latter not. Example 2: google.visualization typings require additional properties.

This is the first step for #273.