@types/rbush
Advanced tools
Comparing version 3.0.4 to 4.0.0
@@ -1,11 +0,9 @@ | ||
declare namespace RBush { | ||
interface BBox { | ||
minX: number; | ||
minY: number; | ||
maxX: number; | ||
maxY: number; | ||
} | ||
export interface BBox { | ||
minX: number; | ||
minY: number; | ||
maxX: number; | ||
maxY: number; | ||
} | ||
declare class RBush<T> { | ||
export default class RBush<T> { | ||
/** | ||
@@ -74,3 +72,3 @@ * Constructs an `RBush`, a high-performance 2D spatial index for points and | ||
*/ | ||
search(box: RBush.BBox): T[]; | ||
search(box: BBox): T[]; | ||
@@ -88,3 +86,3 @@ /** | ||
*/ | ||
collides(box: RBush.BBox): boolean; | ||
collides(box: BBox): boolean; | ||
@@ -110,3 +108,3 @@ /** | ||
*/ | ||
toBBox(item: T): RBush.BBox; | ||
toBBox(item: T): BBox; | ||
@@ -190,3 +188,1 @@ /** | ||
} | ||
export = RBush; |
{ | ||
"name": "@types/rbush", | ||
"version": "3.0.4", | ||
"version": "4.0.0", | ||
"description": "TypeScript definitions for rbush", | ||
@@ -19,4 +19,6 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rbush", | ||
], | ||
"type": "module", | ||
"main": "", | ||
"types": "index.d.ts", | ||
"exports": "./index.d.ts", | ||
"repository": { | ||
@@ -29,4 +31,4 @@ "type": "git", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "fc80def3bc1d9260b66290f3b11e0e11feeda47e77f779972a657120647bc2d6", | ||
"typesPublisherContentHash": "a6479e8247e20d9927dc562cef7411645f9a724817a19dd486baa6214636b4ac", | ||
"typeScriptVersion": "4.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 19 Aug 2024 20:35:51 GMT | ||
* Last updated: Thu, 26 Sep 2024 17:08:07 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Yes
9227
171