mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
Fix return type of Layer function (#1453)
This commit is contained in:
parent
79e2f9b5fb
commit
5a39b8a69b
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