Skip to content

Commit bc8d9ef

Browse files
committed
Fix bezier-spline test failure
1 parent 60d045a commit bc8d9ef

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

packages/turf-bezier-spline/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { Feature, LineString, GeoJsonProperties } from "geojson";
1+
import type { Feature, LineString, GeoJsonProperties } from "geojson";
22
import { lineString } from "@turf/helpers";
33
import { getGeom } from "@turf/invariant";
4-
import { Spline } from "./lib/spline.js";
4+
import { Spline } from "./lib/spline.ts";
55

66
/**
77
* Takes a {@link LineString|line} and returns a curved version

packages/turf-bezier-spline/lib/spline.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
interface Point {
1+
export interface Point {
22
x: number;
33
y: number;
44
z: number;
@@ -30,7 +30,7 @@ interface Point {
3030
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3131
* SOFTWARE.
3232
*/
33-
class Spline {
33+
export class Spline {
3434
public duration: number;
3535
public points: Point[];
3636
public sharpness: number;
@@ -194,6 +194,3 @@ function B(t: number) {
194194
(1 - t) * (1 - t) * (1 - t),
195195
];
196196
}
197-
198-
export { Spline, Point };
199-
export default Spline;

0 commit comments

Comments
 (0)