mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
Return ComponentType from withLeaflet
This commit is contained in:
Vendored
+1
-1
@@ -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'>>;
|
||||
|
||||
Reference in New Issue
Block a user