Fix return type of Layer function (#1453)

This commit is contained in:
povder 2021-05-10 13:38:16 -07:00 committed by Xiaoji Chen
parent 79e2f9b5fb
commit 5a39b8a69b

View File

@ -1,5 +1,5 @@
import * as MapboxGL from "mapbox-gl";
import {PureComponent, Ref} from "react";
import {ReactElement, Ref} from "react";
export interface LayerProps {
id?: string;
@ -24,6 +24,6 @@ export interface LayerProps {
ref?:Ref<LayerProps>
}
export default function Layer(props: LayerProps): null;
export default function Layer(props: LayerProps): ReactElement;