From 6075d60b445ae18d7d8d7003d2f89323b504165b Mon Sep 17 00:00:00 2001 From: neki-dev Date: Tue, 27 Aug 2024 22:02:53 +0200 Subject: [PATCH] fix(types): fix types importing --- dist/task/types.d.ts | 3 +++ dist/types.d.ts | 1 + package.json | 2 +- src/task/types.ts | 3 +++ src/types.ts | 2 ++ 5 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dist/task/types.d.ts b/dist/task/types.d.ts index 46058ad..32d32d0 100644 --- a/dist/task/types.d.ts +++ b/dist/task/types.d.ts @@ -9,4 +9,7 @@ export type PathfindingTaskResult = { */ weight: number; }; +/** + * Callback with task result + */ export type PathfindingTaskCallback = (result: PathfindingTaskResult) => void; diff --git a/dist/types.d.ts b/dist/types.d.ts index 2182332..a798536 100644 --- a/dist/types.d.ts +++ b/dist/types.d.ts @@ -1,4 +1,5 @@ import type { ResourceLimits } from 'worker_threads'; +export * from './task/types'; export type PathfindingConfig = { /** * Finding process loop rate diff --git a/package.json b/package.json index 080d56e..bac67b6 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/task/types.ts b/src/task/types.ts index d4640b2..9006104 100644 --- a/src/task/types.ts +++ b/src/task/types.ts @@ -23,4 +23,7 @@ export type PathfindingTaskResult = { weight: number; }; +/** + * Callback with task result + */ export type PathfindingTaskCallback = (result: PathfindingTaskResult) => void; diff --git a/src/types.ts b/src/types.ts index 2013fb0..3ed26b9 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,5 +1,7 @@ import type { ResourceLimits } from 'worker_threads'; +export * from './task/types'; + export type PathfindingConfig = { /** * Finding process loop rate