Created
April 22, 2018 06:26
-
-
Save fitzmode/fbc1c757fd073c85b4f645775c1a72e1 to your computer and use it in GitHub Desktop.
Typescript type de-assertion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ViewChild(AgmMap) myMap: AgmMap; | |
...... | |
// Specific type 'de-assertion' for only this call: | |
.then(() => (this.myMap as any)._mapsWrapper.setCenter({lat: this.lat, lng: this.lng})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment