Return ComponentType from withLeaflet

This commit is contained in:
Henry Wu
2019-02-12 00:42:00 -08:00
parent a74b997f94
commit 11ef1793cf
+1 -1
View File
@@ -448,4 +448,4 @@ export interface ContextProps {
}
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
export function withLeaflet<T extends ContextProps>(WrappedComponent: React.ComponentType<T>): React.Component<Omit<T, 'leaflet'>>;
export function withLeaflet<T extends ContextProps>(WrappedComponent: React.ComponentType<T>): React.ComponentType<Omit<T, 'leaflet'>>;