From 5a39b8a69bafa7e291d3e80da96d173d08e0c2b0 Mon Sep 17 00:00:00 2001 From: povder Date: Mon, 10 May 2021 13:38:16 -0700 Subject: [PATCH] Fix return type of Layer function (#1453) --- src/components/layer.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/layer.d.ts b/src/components/layer.d.ts index 8601ab31..32c547a2 100644 --- a/src/components/layer.d.ts +++ b/src/components/layer.d.ts @@ -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 } -export default function Layer(props: LayerProps): null; +export default function Layer(props: LayerProps): ReactElement;