Skip to content

Commit

Permalink
Adding externs and moving externs to folder
Browse files Browse the repository at this point in the history
Adding externs files for google charts and visualization and moving files into a folder.
  • Loading branch information
kozbial committed Jul 20, 2016
1 parent 2c5cd45 commit 41f73a3
Show file tree
Hide file tree
Showing 5 changed files with 2,432 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build-app.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,10 @@ def write_compressed(name, lang):
'--namespace=%s' % name.replace('/', '.').title(),
'--compiler_jar=third-party/closure-compiler.jar',
'--compiler_flags=--compilation_level=ADVANCED_OPTIMIZATIONS',
'--compiler_flags=--externs=svg-externs.js',
'--compiler_flags=--externs=interpreter-externs.js',
'--compiler_flags=--externs=externs/svg-externs.js',
'--compiler_flags=--externs=externs/interpreter-externs.js',
'--compiler_flags=--externs=externs/google_charts_loader_api.js',
'--compiler_flags=--externs=externs/google_visualization_api.js',
'--compiler_flags=--language_in=ECMASCRIPT5_STRICT',
'--output_mode=compiled']
directory = name
Expand Down
14 changes: 14 additions & 0 deletions externs/google_charts_loader_api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* @fileoverview Externs for the Google Charts Loader API.
* @see http://code.google.com/apis/ajax/documentation/
* @externs
*/

/** @param {function()} callback */
google.charts.setOnLoadCallback = function(callback) {};

/**
* @param {string} moduleVersion
* @param {Object.<string,*>=} optionalSettings
*/
google.charts.load = function(moduleVersion, optionalSettings) {};
Loading

0 comments on commit 41f73a3

Please sign in to comment.