Skip to content

Commit

Permalink
fix: make sure showcase works with TypeScript 3.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-gokun committed Oct 18, 2019
1 parent bdae276 commit cbaa95c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export class ToggleLayersComponent implements OnInit {
}

toggleLayer(evt: { value: 'contours' | 'museums' }) {
this.layouts[evt.value] = {
// HACK: work around TypeScript compiler warning by casting to 'any'
this.layouts[evt.value] = <any>{
...this.layouts[evt.value],
visibility: this.layouts[evt.value].visibility === 'visible' ? 'none' : 'visible'
};
Expand Down

0 comments on commit cbaa95c

Please sign in to comment.