Skip to content

Commit 5a39b8a

Browse files
povderPessimistress
authored andcommitted
Fix return type of Layer function (#1453)
1 parent 79e2f9b commit 5a39b8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/layer.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as MapboxGL from "mapbox-gl";
2-
import {PureComponent, Ref} from "react";
2+
import {ReactElement, Ref} from "react";
33

44
export interface LayerProps {
55
id?: string;
@@ -24,6 +24,6 @@ export interface LayerProps {
2424
ref?:Ref<LayerProps>
2525
}
2626

27-
export default function Layer(props: LayerProps): null;
27+
export default function Layer(props: LayerProps): ReactElement;
2828

2929

0 commit comments

Comments
 (0)