Skip to content

Commit

Permalink
Add missing return type to getImage in map.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alex3165 committed Nov 30, 2017
1 parent efc6b23 commit 0e0ac91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ class Map extends Camera {
*
* @param id The ID of the image.
*/
getImage(id: string) {
getImage(id: string): ?StyleImage {
if (!id) {
this.fire('error', {
error: new Error('Missing required image id')
Expand Down

0 comments on commit 0e0ac91

Please sign in to comment.