From d234a086dda9bd8ba65e351f9becff8a461fcc35 Mon Sep 17 00:00:00 2001
From: qwreey <me@qwreey.moe>
Date: Thu, 24 Oct 2024 01:18:05 +0000
Subject: [PATCH] Add type for process.endianness (#267)

---
 types/process.luau | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/types/process.luau b/types/process.luau
index 6a4a12e..9c43600 100644
--- a/types/process.luau
+++ b/types/process.luau
@@ -1,5 +1,6 @@
 export type OS = "linux" | "macos" | "windows"
 export type Arch = "x86_64" | "aarch64"
+export type Endianness = "big" | "little"
 
 export type SpawnOptionsStdioKind = "default" | "inherit" | "forward" | "none"
 export type SpawnOptionsStdio = {
@@ -117,8 +118,8 @@ export type ChildProcess = {
 	stdin: typeof(ChildProcessWriter),
 	stdout: typeof(ChildProcessReader),
 	stderr: typeof(ChildProcessReader),
-	kill: () -> ();
-	status: () -> { ok: boolean, code: number }
+	kill: () -> (),
+	status: () -> { ok: boolean, code: number },
 }
 
 --[=[
@@ -222,6 +223,20 @@ process.os = (nil :: any) :: OS
 ]=]
 process.arch = (nil :: any) :: Arch
 
+--[=[
+	@within Process
+	@prop endianness Endianness
+	@tag read_only
+
+	The endianness of the processor currently being used.
+
+	Possible values:
+
+	* `"big"`
+	* `"little"`
+]=]
+process.endianness = (nil :: any) :: Endianness
+
 --[=[
 	@within Process
 	@prop args { string }