mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* add intersects types * Add strictFunctionTypes to true * Add tests * Makes the linter happy
13 lines
289 B
TypeScript
13 lines
289 B
TypeScript
import { polygonBox, pointLine, circleEllipse } from 'intersects';
|
|
|
|
const res = polygonBox([2, 0, 4, 2, 0, 2], 1, 1, 2, 2);
|
|
if (res) {
|
|
// do something
|
|
}
|
|
|
|
if (pointLine(0, 8, -5, 4, 7, 6)) {
|
|
// do agian something
|
|
}
|
|
|
|
const isGood = circleEllipse(0, 6, 9, 2, 4, 5, 1) ? 'yes' : 'no';
|