( source: LeafletContextInterface, extra: Partial<LeafletContextInterface>, )
| 22 | } |
| 23 | |
| 24 | export function extendContext( |
| 25 | source: LeafletContextInterface, |
| 26 | extra: Partial<LeafletContextInterface>, |
| 27 | ): LeafletContextInterface { |
| 28 | return Object.freeze({ ...source, ...extra }) |
| 29 | } |
| 30 | |
| 31 | export const LeafletContext = createContext<LeafletContextInterface | null>( |
| 32 | null, |
no outgoing calls
no test coverage detected
searching dependent graphs…