DefinitelyTyped/types/react-svg-map/react-svg-map-tests.ts
Nick Glazer b87741dcbe
feat(react-svg-map,svg-maps__usa): add new declarations (#44320)
* feat(react-svg-map,svg-maps__usa): add new declarations

* fix(react-svg-map): remove patch version
2020-05-12 11:33:11 -07:00

41 lines
964 B
TypeScript

import { SVGMap } from 'react-svg-map';
import * as React from 'react';
const mockFunction = () => null;
const SVGMapContainer: JSX.Element = React.createElement(SVGMap, {
map: {
viewBox: 'viewBox',
locations: [{
path: 'path',
id: 'id',
name: 'name'
}],
label: 'label',
},
className: 'className',
role: 'role',
locationClassName: 'locationClassName',
locationTabIndex: 'locationTabIndex',
locationRole: 'locationRole',
onLocationMouseOver: mockFunction,
onLocationMouseOut: mockFunction,
onLocationMouseMove: mockFunction,
onLocationClick: mockFunction,
onLocationKeyDown: mockFunction,
onLocationFocus: mockFunction,
onLocationBlur: mockFunction,
isLocationSelected: mockFunction,
});
const SVGMapContainerNoOptional: JSX.Element = React.createElement(SVGMap, {
map: {
viewBox: 'viewBox',
locations: [{
path: 'path',
id: 'id',
}],
label: 'label',
},
});