Skip to content

Commit

Permalink
[react-simple-maps] Add explicit types for children
Browse files Browse the repository at this point in the history
  • Loading branch information
lukask-proxora committed Oct 26, 2023
1 parent 69dbf71 commit e4bcb5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/react-simple-maps/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface ProjectionConfig {
export type ProjectionFunction = (width: number, height: number, config: ProjectionConfig) => GeoProjection;

export interface ComposableMapProps extends React.SVGAttributes<SVGSVGElement> {
children?: React.ReactNode;
/**
* @default 800
*/
Expand Down Expand Up @@ -42,6 +43,7 @@ export interface Position {
}

export interface ZoomableGroupProps extends React.SVGAttributes<SVGGElement> {
children?: React.ReactNode;
/**
* @default [0, 0]
*/
Expand Down Expand Up @@ -118,6 +120,7 @@ export interface GeographyProps
export interface MarkerProps
extends Pick<React.SVGProps<SVGPathElement>, Exclude<keyof React.SVGProps<SVGPathElement>, "style">>
{
children?: React.ReactNode;
coordinates?: Point | undefined;
style?: {
default?: React.CSSProperties | undefined;
Expand All @@ -133,6 +136,7 @@ export interface MarkerProps
}

export interface AnnotationProps extends React.SVGProps<SVGGElement> {
children?: React.ReactNode;
subject?: Point | undefined;
connectorProps: React.SVGProps<SVGPathElement>;
/**
Expand Down

0 comments on commit e4bcb5a

Please sign in to comment.