Sorry if this is a beginner question, but what's the best way to get the 
typings picked up in VS for an external JS library like google charts?

Thanks in advance

Here is my current code:


import { Component, Inject } from '@angular/core';
import { JsonServiceClient } from 'servicestack-client';
import * as dto from '../../dtos/portal-services.dtos';


declare var google: any;


@Component({
    selector: 'operations',
    templateUrl: './operations.component.html'
})
export class OperationsComponent {
    dashboard: any;
    client: JsonServiceClient;
    venueCategoryControl: any;
    columnsChart: any;
    proxyTable: any;
    sharedData: any;
    colors: string[] = ['black', 'red', 'maroon', 'olive', 'blue', 'fuchsia'
];


    constructor(@Inject('PORTAL_SERVICE_URL') portalServiceUrl: string) {
        this.drawDashboard = this.drawDashboard.bind(this);
        this.client = new JsonServiceClient(portalServiceUrl);
    }


    ngOnInit(): void {
        console.log('OperationsComponent init...');
        google.charts.load('current', { 'packages': ['corechart', 'controls'
, 'calendar'] });
        google.charts.setOnLoadCallback(this.drawDashboard);
    }


-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/3e419318-440d-4fd7-bf06-450b4da215cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to