Skip to content

Commit

Permalink
type: fix type error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 23, 2024
1 parent 49a857a commit 5619e9a
Show file tree
Hide file tree
Showing 58 changed files with 30 additions and 121 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
]
},
"devDependencies": {
"@types/react": "~18.2.16",
"@types/react-dom": "~18.2.7",
"@types/react-test-renderer": "~18.0.0",
"@kkt/less-modules": "^7.5.2",
"@kkt/ncc": "^1.0.15",
Expand Down
4 changes: 0 additions & 4 deletions packages/api-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,5 @@
"@amap/amap-jsapi-loader": "^1.0.1",
"@uiw/react-amap-require-script": "6.0.4",
"@uiw/react-amap-types": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
4 changes: 0 additions & 4 deletions packages/auto-complete/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,5 @@
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-types": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/auto-complete/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import React, { useImperativeHandle } from 'react';
import { OverlayProps } from '@uiw/react-amap-map';
import { useAutoComplete } from './useAutoComplete';
Expand Down
4 changes: 0 additions & 4 deletions packages/bezier-curve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,5 @@
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-types": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/bezier-curve/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import React, { useImperativeHandle } from 'react';
import { OverlayProps } from '@uiw/react-amap-map';
import { useBezierCurve } from './useBezierCurve';
Expand Down
4 changes: 0 additions & 4 deletions packages/circle-marker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,5 @@
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-types": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/circle-marker/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import React, { useImperativeHandle } from 'react';
import { OverlayProps } from '@uiw/react-amap-map';
import { useCircleMarker } from './useCircleMarker';
Expand Down
4 changes: 0 additions & 4 deletions packages/circle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,5 @@
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-types": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/circle/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import React, { useImperativeHandle } from 'react';
import { OverlayProps } from '@uiw/react-amap-map';
import { useCircle } from './useCircle';
Expand Down
4 changes: 0 additions & 4 deletions packages/context-menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,5 @@
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-types": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
2 changes: 2 additions & 0 deletions packages/context-menu/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@uiw/react-amap-types" />

import React, { useImperativeHandle, Fragment } from 'react';
import { MapChildProps } from '@uiw/react-amap-map';
import { useContextMenu } from './useContextMenu';
Expand Down
4 changes: 0 additions & 4 deletions packages/control-bar-control/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,5 @@
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-types": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/control-bar-control/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import React, { useImperativeHandle } from 'react';
import { OverlayProps } from '@uiw/react-amap-map';
import { useControlBarControl } from './useControlBarControl';
Expand Down
4 changes: 0 additions & 4 deletions packages/ellipse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,5 @@
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-types": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/ellipse/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import React, { useImperativeHandle } from 'react';
import { OverlayProps } from '@uiw/react-amap-map';
import { useEllipse } from './useEllipse';
Expand Down
4 changes: 0 additions & 4 deletions packages/geolocation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,5 @@
},
"dependencies": {
"@uiw/react-amap-map": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/geolocation/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import React, { useImperativeHandle } from 'react';
import { OverlayProps } from '@uiw/react-amap-map';
import { useGeolocation } from './useGeolocation';
Expand Down
4 changes: 0 additions & 4 deletions packages/hawk-eye-control/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,5 @@
"dependencies": {
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/hawk-eye-control/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import React, { useImperativeHandle } from 'react';
import { OverlayProps } from '@uiw/react-amap-map';
import { useHawkEyeControl } from './useHawkEyeControl';
Expand Down
4 changes: 0 additions & 4 deletions packages/info-window/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,5 @@
"dependencies": {
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/info-window/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import React, { useImperativeHandle } from 'react';
import { OverlayProps } from '@uiw/react-amap-map';
import { useInfoWindow } from './useInfoWindow';
Expand Down
4 changes: 0 additions & 4 deletions packages/label-marker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,5 @@
"dependencies": {
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/label-marker/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import { useImperativeHandle, forwardRef } from 'react';
import { OverlayProps } from '@uiw/react-amap-map';
import { useLabelMarker } from './useLabelMarker';
Expand Down
4 changes: 0 additions & 4 deletions packages/map-type-control/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,5 @@
"dependencies": {
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/map-type-control/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import React, { useImperativeHandle } from 'react';
import { OverlayProps } from '@uiw/react-amap-map';
import { useMapTypeControl } from './useMapTypeControl';
Expand Down
4 changes: 0 additions & 4 deletions packages/map/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,5 @@
"dependencies": {
"@uiw/react-amap-types": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/map/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference types="@uiw/react-amap-types" />

import React, { useRef, useEffect, useImperativeHandle, forwardRef, useReducer, FC, PropsWithChildren } from 'react';
import { useMap } from './useMap';
import { Context, reducer, initialState } from './context';
Expand Down
4 changes: 0 additions & 4 deletions packages/marker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,5 @@
"dependencies": {
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
2 changes: 2 additions & 0 deletions packages/marker/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@uiw/react-amap-types" />

import { useImperativeHandle, forwardRef } from 'react';
import { OverlayProps } from '@uiw/react-amap-map';
import { useMarker } from './useMarker';
Expand Down
4 changes: 0 additions & 4 deletions packages/mass-marks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,5 @@
"dependencies": {
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/mass-marks/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import React, { useImperativeHandle } from 'react';
import { OverlayProps } from '@uiw/react-amap-map';
import { useMassMarks } from './useMassMarks';
Expand Down
4 changes: 0 additions & 4 deletions packages/mouse-tool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,5 @@
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-types": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/mouse-tool/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import { forwardRef, useEffect, useImperativeHandle, useState } from 'react';
import { useEventProperties } from '@uiw/react-amap-utils';
import { useMapContext } from '@uiw/react-amap-map';
Expand Down
1 change: 0 additions & 1 deletion packages/mouse-tool/src/type.d.ts

This file was deleted.

4 changes: 0 additions & 4 deletions packages/poly-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,5 @@
"@uiw/react-amap-polyline": "6.0.4",
"@uiw/react-amap-types": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
4 changes: 0 additions & 4 deletions packages/polygon-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,5 @@
"@uiw/react-amap-polygon": "6.0.4",
"@uiw/react-amap-types": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/polygon-editor/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import { forwardRef, useEffect, useImperativeHandle, useState, useContext } from 'react';
import { useEventProperties } from '@uiw/react-amap-utils';
import { useMapContext } from '@uiw/react-amap-map';
Expand Down
4 changes: 0 additions & 4 deletions packages/polygon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,5 @@
"dependencies": {
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/polygon/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import { useImperativeHandle, forwardRef, createContext } from 'react';
import { OverlayProps } from '@uiw/react-amap-map';
import { usePolygon } from './usePolygon';
Expand Down
4 changes: 0 additions & 4 deletions packages/polyline-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,5 @@
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-polyline": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/polyline-editor/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import { forwardRef, useEffect, useImperativeHandle, useContext, useState } from 'react';
import { useEventProperties } from '@uiw/react-amap-utils';
import { useMapContext } from '@uiw/react-amap-map';
Expand Down
4 changes: 0 additions & 4 deletions packages/polyline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,5 @@
"dependencies": {
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/polyline/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import React, { useImperativeHandle, createContext } from 'react';
import { OverlayProps } from '@uiw/react-amap-map';
import { usePolyline } from './usePolyline';
Expand Down
4 changes: 0 additions & 4 deletions packages/rectangle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,5 @@
"dependencies": {
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/rectangle/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import React, { useImperativeHandle } from 'react';
import { OverlayProps } from '@uiw/react-amap-map';
import { useRectangle } from './useRectangle';
Expand Down
4 changes: 0 additions & 4 deletions packages/require-script/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
},
"dependencies": {
"@uiw/react-amap-types": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
4 changes: 0 additions & 4 deletions packages/scale-control/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,5 @@
"dependencies": {
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/scale-control/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import React, { useImperativeHandle } from 'react';
import { OverlayProps } from '@uiw/react-amap-map';
import { useScaleControl } from './useScaleControl';
Expand Down
4 changes: 0 additions & 4 deletions packages/text/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,5 @@
"dependencies": {
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
1 change: 1 addition & 0 deletions packages/text/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@uiw/react-amap-types" />
import { forwardRef, useImperativeHandle } from 'react';
import { OverlayProps } from '@uiw/react-amap-map';
import { useText } from './useText';
Expand Down
4 changes: 0 additions & 4 deletions packages/tile-layer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,5 @@
"dependencies": {
"@uiw/react-amap-map": "6.0.4",
"@uiw/react-amap-utils": "6.0.4"
},
"devDependencies": {
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7"
}
}
Loading

0 comments on commit 5619e9a

Please sign in to comment.