Skip to content

Commit

Permalink
fix(types): fix types importing
Browse files Browse the repository at this point in the history
  • Loading branch information
neki-dev committed Aug 27, 2024
1 parent 4592518 commit 6075d60
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dist/task/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ export type PathfindingTaskResult = {
*/
weight: number;
};
/**
* Callback with task result
*/
export type PathfindingTaskCallback = (result: PathfindingTaskResult) => void;
1 change: 1 addition & 0 deletions dist/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { ResourceLimits } from 'worker_threads';
export * from './task/types';
export type PathfindingConfig = {
/**
* Finding process loop rate
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pathfinding-worker",
"description": "Fast node.js pathfinding on workers for grid-based games",
"version": "2.1.2",
"version": "2.1.3",
"keywords": [
"astar",
"dijkstra",
Expand Down
3 changes: 3 additions & 0 deletions src/task/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ export type PathfindingTaskResult = {
weight: number;
};

/**
* Callback with task result
*/
export type PathfindingTaskCallback = (result: PathfindingTaskResult) => void;
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type { ResourceLimits } from 'worker_threads';

export * from './task/types';

export type PathfindingConfig = {
/**
* Finding process loop rate
Expand Down

0 comments on commit 6075d60

Please sign in to comment.