From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- node_modules/jest-worker/build/PriorityQueue.d.ts | 41 ----------------------- 1 file changed, 41 deletions(-) delete mode 100644 node_modules/jest-worker/build/PriorityQueue.d.ts (limited to 'node_modules/jest-worker/build/PriorityQueue.d.ts') diff --git a/node_modules/jest-worker/build/PriorityQueue.d.ts b/node_modules/jest-worker/build/PriorityQueue.d.ts deleted file mode 100644 index d6bcf4cf..00000000 --- a/node_modules/jest-worker/build/PriorityQueue.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -import type { QueueChildMessage, TaskQueue } from './types'; -export declare type ComputeTaskPriorityCallback = (method: string, ...args: Array) => number; -declare type QueueItem = { - task: QueueChildMessage; - priority: number; -}; -/** - * Priority queue that processes tasks in natural ordering (lower priority first) - * accoridng to the priority computed by the function passed in the constructor. - * - * FIFO ordering isn't guaranteed for tasks with the same priority. - * - * Worker specific tasks with the same priority as a non-worker specific task - * are always processed first. - */ -export default class PriorityQueue implements TaskQueue { - private _computePriority; - private _queue; - private _sharedQueue; - constructor(_computePriority: ComputeTaskPriorityCallback); - enqueue(task: QueueChildMessage, workerId?: number): void; - _enqueue(task: QueueChildMessage, queue: MinHeap): void; - dequeue(workerId: number): QueueChildMessage | null; - _getWorkerQueue(workerId: number): MinHeap; -} -declare type HeapItem = { - priority: number; -}; -declare class MinHeap { - private _heap; - peek(): TItem | null; - add(item: TItem): void; - poll(): TItem | null; -} -export {}; -- cgit v1.2.3