This repository has been archived on 2026-05-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
novarix-networks-homepage/node_modules/next/dist/shared/lib/turbopack/compilation-events.d.ts
T
Kismet Hasanaj 34dc9aec52 .
2026-05-02 20:07:02 +02:00

21 lines
870 B
TypeScript

import type { Project } from '../../../build/swc/types';
import { type Span } from '../../../trace';
export declare function msToNs(ms: number): bigint;
/**
* Subscribes to compilation events for `project` and prints them using the
* `Log` library.
*
* When `parentSpan` is provided, `TraceEvent` compilation events are recorded
* as trace spans in the `.next/trace` file.
*
* Returns a promise that resolves when the subscription ends. Abort the
* `signal` to close the underlying async iterator and settle the promise
* promptly. The iterator also closes automatically when the Rust side
* drops the subscription (e.g. after project shutdown).
*/
export declare function backgroundLogCompilationEvents(project: Project, { eventTypes, signal, parentSpan, }?: {
eventTypes?: string[];
signal?: AbortSignal;
parentSpan?: Span;
}): Promise<void>;