diff --git a/types/cytoscape-d3-force/package.json b/types/cytoscape-d3-force/package.json index 1b06c5c0d6df3e..20a3e6f1d42318 100644 --- a/types/cytoscape-d3-force/package.json +++ b/types/cytoscape-d3-force/package.json @@ -6,7 +6,7 @@ "https://github.com/shichuanpo/cytoscape.js-d3-force" ], "dependencies": { - "@types/cytoscape": "^3.0.9" + "cytoscape": "^3.31" }, "devDependencies": { "@types/cytoscape-d3-force": "workspace:." diff --git a/types/formidable/FormidableError.d.ts b/types/formidable/FormidableError.d.ts index 3931e8b662e6e1..7ceb1ad5d006bb 100644 --- a/types/formidable/FormidableError.d.ts +++ b/types/formidable/FormidableError.d.ts @@ -1,5 +1,5 @@ declare class FormidableError extends Error { - internalCode: number; + code: number; httpCode?: number | undefined; constructor(message: string, internalCode: number, httpCode?: number); } diff --git a/types/leaflet/index.d.ts b/types/leaflet/index.d.ts index 03bff2ccd8adb8..8861fff8d2861f 100644 --- a/types/leaflet/index.d.ts +++ b/types/leaflet/index.d.ts @@ -2080,7 +2080,7 @@ export class Rectangle

extends Polygon

{ export function rectangle

(latLngBounds: LatLngBoundsExpression, options?: PolylineOptions): Rectangle

; export interface CircleMarkerOptions extends PathOptions { - radius: number; + radius?: number | undefined; } export class CircleMarker

extends Path { diff --git a/types/leaflet/leaflet-tests.ts b/types/leaflet/leaflet-tests.ts index 895f08e6dc3e04..7f2db3cb8e2441 100644 --- a/types/leaflet/leaflet-tests.ts +++ b/types/leaflet/leaflet-tests.ts @@ -1009,17 +1009,16 @@ let circle = new L.Circle(latLng, 10); circle = new L.Circle(latLng, { radius: 10 }); // @ts-expect-error circle = new L.Circle(latLng, { radius: "10" }); -// @ts-expect-error circle = new L.Circle(latLng, { radius: undefined }); // @ts-expect-error circle = new L.Circle(latLng, { radius: null }); -// @ts-expect-error circle = new L.Circle(latLng, {}); // @ts-expect-error circle = new L.Circle(latLng); let circleMarker = new L.CircleMarker(latLng, { radius: 10 }).setStyle({}); circleMarker = new L.CircleMarker(latLng, { radius: 10 }).setStyle({ radius: 10 }); +circleMarker = new L.CircleMarker(latLng, { color: "red" }); // @ts-expect-error circleMarker = new L.CircleMarker(latLng, { radius: 10 }).setStyle();