Replace typedefs with externs
Since the compiler leaves externs untouched and learns the used properties from object literals, this replaces the otherwise required typedefs just fine.
This commit is contained in:
4
build.py
4
build.py
@@ -297,8 +297,7 @@ def examples_star_json(name, match):
|
||||
'id': match.group('id'),
|
||||
'inherits': '../../buildcfg/base.json',
|
||||
'inputs': [
|
||||
'../examples/%(id)s.js' % match.groupdict(),
|
||||
'../externs/olx.js', # compiled with src for @typedef's
|
||||
'../examples/%(id)s.js' % match.groupdict()
|
||||
],
|
||||
'externs': [
|
||||
'//jquery-1.7.js',
|
||||
@@ -308,6 +307,7 @@ def examples_star_json(name, match):
|
||||
'../externs/example.js',
|
||||
'../externs/geojson.js',
|
||||
'../externs/oli.js',
|
||||
'../externs/olx.js',
|
||||
'../externs/proj4js.js',
|
||||
'../externs/tilejson.js',
|
||||
'../externs/topojson.js',
|
||||
|
||||
Reference in New Issue
Block a user