mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-25 16:02:50 +00:00
Fix return type of Layer function (#1453)
This commit is contained in:
parent
9d0652878a
commit
35e2f37e0f
4
src/components/layer.d.ts
vendored
4
src/components/layer.d.ts
vendored
@ -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;
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user