Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Add declare to interfaces that describe JSON types #1161

Merged
merged 2 commits into from
Jul 12, 2018
Merged

Add declare to interfaces that describe JSON types #1161

merged 2 commits into from
Jul 12, 2018

Conversation

dsmilkov
Copy link
Contributor

@dsmilkov dsmilkov commented Jul 11, 2018

Adding declare to interfaces that describe JSON types tells the closure compiler to not rewrite the code that accessed those fields. Also use strings for lookup in dictionaries.

And fix flaky multinomial unit tests.

DEV


This change is Reviewable

@dsmilkov dsmilkov requested review from nsthorat and caisq July 11, 2018 22:09
@dsmilkov dsmilkov changed the title Add declare to interface that describe JSON types Add declare to interfaces that describe JSON types Jul 11, 2018
Copy link
Contributor

@nsthorat nsthorat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r1.
Reviewable status: 0 of 1 approvals obtained (waiting on @nsthorat and @caisq)

@dsmilkov dsmilkov merged commit 8cabdf8 into master Jul 12, 2018
@dsmilkov dsmilkov deleted the google3 branch July 12, 2018 01:19
@caisq
Copy link
Collaborator

caisq commented Jul 12, 2018

LGTM. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants