Skip to content

Commit 65f0c72

Browse files
committed
chore(ipc): sort locally-defined Ipc interface properties alphabetically
1 parent 3387322 commit 65f0c72

File tree

1 file changed

+4
-4
lines changed
  • packages/cli/src/utils/validation

1 file changed

+4
-4
lines changed

packages/cli/src/utils/validation/ipc.mts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ import { randomBytes } from 'node:crypto'
1010
import type { IpcStub } from '@socketsecurity/lib/ipc'
1111

1212
export interface IpcMessage<T = unknown> {
13+
data: T
1314
id: string
1415
timestamp: number
1516
type: string
16-
data: T
1717
}
1818

1919
export interface IpcHandshake extends IpcMessage<{
20-
version: string
21-
pid: number
22-
appName: string
2320
apiToken?: string | undefined
21+
appName: string
22+
pid: number
23+
version: string
2424
}> {
2525
type: 'handshake'
2626
}

0 commit comments

Comments
 (0)