Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
} from '@react-google-maps/api'
import * as PropTypes from 'prop-types'
import {
type JSX,
memo,
useCallback,
useMemo,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line node/no-extraneous-import
import { type CSSProperties, memo } from 'react'
import { type CSSProperties, type JSX, memo } from 'react'
import PropTypes from 'prop-types'
import { GoogleMap, DrawingManager } from '@react-google-maps/api'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line node/no-extraneous-import
import { type CSSProperties, memo } from 'react'
import { type CSSProperties, type JSX, memo } from 'react'
import PropTypes from 'prop-types'
import { GoogleMap, GroundOverlay } from '@react-google-maps/api'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line node/no-extraneous-import
import { type CSSProperties, memo, useMemo } from 'react'
import { type CSSProperties, type JSX, memo, useMemo } from 'react'
import PropTypes from 'prop-types'
import {
GoogleMap,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line node/no-extraneous-import
import { type CSSProperties, memo } from 'react'
import { type CSSProperties, type JSX, memo } from 'react'
import PropTypes from 'prop-types'
import { GoogleMap } from '@react-google-maps/api'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line node/no-extraneous-import
import { type CSSProperties, memo, useCallback, useState } from 'react'
import { type CSSProperties, type JSX, memo, useCallback, useState } from 'react'
import PropTypes from 'prop-types'
import { GoogleMap, OverlayViewF, MarkerF, OVERLAY_MOUSE_TARGET, MARKER_LAYER, } from '@react-google-maps/api'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line node/no-extraneous-import
import { type CSSProperties, memo } from 'react'
import { type CSSProperties, type JSX, memo } from 'react'
import PropTypes from 'prop-types'
import { GoogleMap, StandaloneSearchBox } from '@react-google-maps/api'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line node/no-extraneous-import
import { type CSSProperties, memo, useCallback, useMemo, useState, ChangeEventHandler } from 'react'
import { type CSSProperties, type JSX, memo, useCallback, useMemo, useState, ChangeEventHandler } from 'react'
import PropTypes from 'prop-types'
import {
GoogleMap,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line node/no-extraneous-import
import { type CSSProperties, memo } from 'react'
import { type CSSProperties, type JSX, memo } from 'react'
import PropTypes from 'prop-types'
import { GoogleMap, TrafficLayer } from '@react-google-maps/api'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line node/no-extraneous-import
import { type CSSProperties, memo } from 'react'
import { type CSSProperties, type JSX, memo } from 'react'
import PropTypes from 'prop-types'
import { GoogleMap, TransitLayer } from '@react-google-maps/api'

Expand Down
2 changes: 1 addition & 1 deletion packages/react-google-maps-api/src/LoadScript.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createRef, PureComponent, type ReactNode, type RefObject } from 'react'
import { createRef, type JSX, PureComponent, type ReactNode, type RefObject } from 'react'
import invariant from 'invariant'

import { injectScript } from './utils/injectscript'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* @jest-environment jsdom
*/
import type { JSX } from 'react'

import { type JSX } from "react"
import { render, cleanup } from "@testing-library/react"
import GoogleMap from "../../GoogleMap"
import Circle, { type CircleProps } from '../../components/drawing/Circle'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
type ContextType,
type JSX,
PureComponent,
useState,
memo,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

```jsx
const ScriptLoaded = require("../../docs/ScriptLoaded").default;
import React, { memo, useCallback, useMemo, useRef, useState } from 'react';
import React, { type JSX, memo, useCallback, useMemo, useRef, useState } from 'react';

import {
GoogleMap,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type ContextType, PureComponent } from 'react'
import { type ContextType, type JSX, PureComponent } from 'react'

import { unregisterEvents, applyUpdatersToPropsAndRegisterEvents } from '../../utils/helper'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// eslint-disable-next-line node/no-extraneous-import
import type { StoryFn, Meta } from '@storybook/react'
import { type JSX } from "react"
import GoogleMap from '../../GoogleMap'
import { OverlayViewF, OVERLAY_LAYER } from './OverlayView'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
type ReactNode,
type ContextType,
type ReactElement,
type JSX,
} from 'react'

import { unregisterEvents, applyUpdatersToPropsAndRegisterEvents } from '../../utils/helper'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Children, type ContextType, createRef, PureComponent, type ReactChild, type RefObject } from 'react'
import { Children, type ContextType, createRef, type JSX, PureComponent, type ReactNode, type RefObject } from 'react'

import { unregisterEvents, applyUpdatersToPropsAndRegisterEvents } from '../../utils/helper'

Expand Down Expand Up @@ -43,7 +43,7 @@ interface AutocompleteState {

export interface AutocompleteProps {
// required
children: ReactChild
children: ReactNode
/** The area in which to search for places. */
bounds?: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral | undefined
/** The component restrictions. Component restrictions are used to restrict predictions to only those within the parent component. For example, the country. */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Children, type ContextType, createRef, PureComponent, type ReactNode, type RefObject } from 'react'
import { Children, type ContextType, createRef, type JSX, PureComponent, type ReactNode, type RefObject } from 'react'

import invariant from 'invariant'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type ChangeEvent, Component, type FormEvent, type ReactNode } from 'react'
import { type ChangeEvent, Component, type JSX, type FormEvent, type ReactNode } from 'react'
import { setKey, getKey } from './docs-api-key'

import LoadScript from '../LoadScript'
Expand Down
4 changes: 2 additions & 2 deletions packages/react-google-maps-api/src/docs/ScriptLoaded.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Component, type ReactChild, type ReactChildren } from 'react'
import { Component, type JSX, type ReactNode } from 'react'

interface ScriptLoadedState {
scriptLoaded: boolean
}

interface ScriptLoadedProps {
// eslint-disable-next-line @typescript-eslint/ban-types
children: ReactChild | ReactChildren | Function
children: ReactNode | ReactNode[] | Function
}

function SpanIntro(): JSX.Element {
Expand Down