Skip to content

Commit 4fcf96c

Browse files
branchseerclaude
andcommitted
fix: reorder shutdownTracing declaration to match NAPI-RS generation
NAPI-RS generates type declarations alphabetically, placing shutdownTracing (s) after runCommand (r) and its interfaces. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent dc8a59b commit 4fcf96c

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

packages/cli/binding/index.d.cts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -267,13 +267,6 @@ export declare function rewriteScripts(scriptsJson: string, rulesYaml: string):
267267
*/
268268
export declare function run(options: CliOptions): Promise<number>;
269269

270-
/**
271-
* Flush and drop the tracing guard. Must be called before process.exit()
272-
* because Rust statics in OnceLock are never dropped, and the ChromeLayer
273-
* FlushGuard only writes trace data to disk when dropped.
274-
*/
275-
export declare function shutdownTracing(): void;
276-
277270
/**
278271
* Run a command with fspy tracking, callable from JavaScript.
279272
*
@@ -343,3 +336,10 @@ export interface RunCommandResult {
343336
/** Map of relative paths to their access modes */
344337
pathAccesses: Record<string, PathAccess>;
345338
}
339+
340+
/**
341+
* Flush and drop the tracing guard. Must be called before process.exit()
342+
* because Rust statics in OnceLock are never dropped, and the ChromeLayer
343+
* FlushGuard only writes trace data to disk when dropped.
344+
*/
345+
export declare function shutdownTracing(): void;

0 commit comments

Comments
 (0)