mirror of
https://github.com/lune-org/lune.git
synced 2025-04-10 21:40:54 +01:00
Add type for process.endianness (#267)
This commit is contained in:
parent
6903367c29
commit
d234a086dd
1 changed files with 17 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
export type OS = "linux" | "macos" | "windows"
|
export type OS = "linux" | "macos" | "windows"
|
||||||
export type Arch = "x86_64" | "aarch64"
|
export type Arch = "x86_64" | "aarch64"
|
||||||
|
export type Endianness = "big" | "little"
|
||||||
|
|
||||||
export type SpawnOptionsStdioKind = "default" | "inherit" | "forward" | "none"
|
export type SpawnOptionsStdioKind = "default" | "inherit" | "forward" | "none"
|
||||||
export type SpawnOptionsStdio = {
|
export type SpawnOptionsStdio = {
|
||||||
|
@ -117,8 +118,8 @@ export type ChildProcess = {
|
||||||
stdin: typeof(ChildProcessWriter),
|
stdin: typeof(ChildProcessWriter),
|
||||||
stdout: typeof(ChildProcessReader),
|
stdout: typeof(ChildProcessReader),
|
||||||
stderr: typeof(ChildProcessReader),
|
stderr: typeof(ChildProcessReader),
|
||||||
kill: () -> ();
|
kill: () -> (),
|
||||||
status: () -> { ok: boolean, code: number }
|
status: () -> { ok: boolean, code: number },
|
||||||
}
|
}
|
||||||
|
|
||||||
--[=[
|
--[=[
|
||||||
|
@ -222,6 +223,20 @@ process.os = (nil :: any) :: OS
|
||||||
]=]
|
]=]
|
||||||
process.arch = (nil :: any) :: Arch
|
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
|
@within Process
|
||||||
@prop args { string }
|
@prop args { string }
|
||||||
|
|
Loading…
Add table
Reference in a new issue