Skip to content

Commit 381dd76

Browse files
committed
refactor: sort interface/type properties alphabetically
Sort properties alphabetically in type/interface definitions for consistency: **src/git.ts - GitDiffOptions:** - absolute, asSet, cache, cwd, porcelain, [key: string]: unknown **src/spawn.ts - PromiseSpawnOptions:** - cwd, env, gid, shell, signal, stdio, stdioString, timeout, uid **src/ipc.ts - IpcStub:** - data, pid, timestamp **src/ipc.ts - IpcOptions:** - encoding, timeout No functional changes, just organizational improvement.
1 parent c25804a commit 381dd76

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

src/git.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ export interface GitDiffOptions {
3333
* @default false
3434
*/
3535
absolute?: boolean | undefined
36+
/**
37+
* Return results as a `Set` instead of an array.
38+
*
39+
* @default false
40+
*/
41+
asSet?: boolean | undefined
3642
/**
3743
* Cache git diff results to avoid repeated git subprocess calls.
3844
*
@@ -61,12 +67,6 @@ export interface GitDiffOptions {
6167
* @default false
6268
*/
6369
porcelain?: boolean | undefined
64-
/**
65-
* Return results as a `Set` instead of an array.
66-
*
67-
* @default false
68-
*/
69-
asSet?: boolean | undefined
7070
/**
7171
* Additional options passed to glob matcher.
7272
*

src/ipc.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,22 +138,22 @@ export interface IpcHandshake
138138
* Represents the structure of stub files used for filesystem-based IPC.
139139
*/
140140
export interface IpcStub {
141+
/** The actual data payload. */
142+
data: unknown
141143
/** Process ID that created the stub. */
142144
pid: number
143145
/** Creation timestamp for age validation. */
144146
timestamp: number
145-
/** The actual data payload. */
146-
data: unknown
147147
}
148148

149149
/**
150150
* Options for IPC communication
151151
*/
152152
export interface IpcOptions {
153-
/** Timeout in milliseconds for async operations. */
154-
timeout?: number
155153
/** Text encoding for message serialization. */
156154
encoding?: BufferEncoding
155+
/** Timeout in milliseconds for async operations. */
156+
timeout?: number
157157
}
158158

159159
/**

src/spawn.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ function getChildProcess() {
8181
*/
8282
export type PromiseSpawnOptions = {
8383
cwd?: string | undefined
84-
stdioString?: boolean | undefined
85-
stdio?: StdioType | undefined
8684
env?: NodeJS.ProcessEnv | undefined
85+
gid?: number | undefined
8786
shell?: boolean | string | undefined
8887
signal?: AbortSignal | undefined
88+
stdio?: StdioType | undefined
89+
stdioString?: boolean | undefined
8990
timeout?: number | undefined
9091
uid?: number | undefined
91-
gid?: number | undefined
9292
}
9393

9494
/**

0 commit comments

Comments
 (0)