react-ymaps3
Advanced tools
Comparing version 0.0.11 to 0.0.12
{ | ||
"name": "react-ymaps3", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "React Yandex Maps API 3 wrapper", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/sbcrmweb/react-ymaps3", |
import { YMap as YMapHandle } from '@yandex/ymaps3-types'; | ||
import { YMap as YMapComponent } from '@yandex/ymaps3-types/react'; | ||
import utils from '../../utils'; | ||
import { Modify } from '../../utils/typescript'; | ||
export interface YMapProps | ||
extends React.ComponentProps<typeof YMapComponent> {} | ||
export type YMapProps = Modify< | ||
React.ComponentPropsWithRef<typeof YMapComponent>, | ||
{ | ||
key?: React.Key; | ||
} | ||
>; | ||
const YMap = utils.createElement<YMapHandle, YMapProps>( | ||
'YMap', | ||
) as typeof YMapComponent; | ||
) as React.ForwardRefExoticComponent<YMapProps>; | ||
export default YMap; | ||
export { YMap as YMapHandle } from '@yandex/ymaps3-types'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
57
637
65627