/*******************************************************************************
 * Copyright 2017, 2017 gwt-ol3
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *******************************************************************************/
package ol.render;

import com.google.gwt.core.client.JavaScriptObject;

import jsinterop.annotations.JsProperty;

import jsinterop.annotations.JsType;
import ol.FrameState;

/**
 *
 * @author Tino Desjardins
 */
@JsType(isNative = true)
public interface Event extends ol.events.Event {

    /**
     * Canvas context. Only available when a Canvas renderer is used, null otherwise.
     *
     * @return Canvas context
     */
    @JsProperty
    JavaScriptObject getContext();

    /**
     * An object representing the current render frame state.
     *
     * @return current render frame state
     */
    @JsProperty
    FrameState getFrameState();

    /**
     * For canvas, this is an instance of {@link ol.render.canvas.Immediate}.
     */
    @JsProperty
    VectorContext getVectorContext();
    
}

@@ -776,54 +776,49 @@
 ort 
-com.google.gwt.core.client.JavaScriptObject
+elemental2.dom.CanvasRenderingContext2D
 ;%0A
-%0A
 impo
@@ -1191,24 +1191,32 @@
     
-JavaScriptObject
+CanvasRenderingContext2D
  get
@@ -1551,15 +1551,11 @@
 text();%0A
-    
 %0A%7D%0A

Use elemental2 and remove JavaScriptObject from ol.render.Event