(
createElement: (
props: PropsWithoutRef<P>,
context: LeafletContextInterface,
) => LeafletElement<E>,
updateElement?: (
instance: E,
props: PropsWithoutRef<P>,
prevProps: PropsWithoutRef<P>,
) => void,
)
| 100 | } |
| 101 | |
| 102 | export function createTileLayerComponent<E extends Layer, P extends LayerProps>( |
| 103 | createElement: ( |
| 104 | props: PropsWithoutRef<P>, |
| 105 | context: LeafletContextInterface, |
| 106 | ) => LeafletElement<E>, |
| 107 | updateElement?: ( |
| 108 | instance: E, |
| 109 | props: PropsWithoutRef<P>, |
| 110 | prevProps: PropsWithoutRef<P>, |
| 111 | ) => void, |
| 112 | ) { |
| 113 | const useElement = createElementHook(createElement, updateElement) |
| 114 | const useLayer = createLayerHook(useElement) |
| 115 | return createLeafComponent(useLayer) |
| 116 | } |
no test coverage detected
searching dependent graphs…