char/avril

(wip) why'd you have to go and make things so complicaaaaated?

git clone https://git.t4t.associates/char/avril

Charlotte Somgenerate std typedefs from typescript impl38d7f6c

main
952 B22 linesraw
1declare module "ext:core/ops" {
2  import type { FileReply } from "ext:file/errors.js";
3
4  export function op_env_get(name: string): FileReply<string | null>;
5  export function op_env_set(args: [name: string, value: string]): FileReply<null>;
6  export function op_env_delete(name: string): FileReply<null>;
7  export function op_env_to_object(): [name: string, value: string][];
8  export function op_process_cwd(): FileReply<string>;
9  export function op_sys_hostname(): FileReply<string>;
10  export function op_sys_os_release(): FileReply<string>;
11  export function op_sys_uptime(): FileReply<number>;
12  export function op_sys_loadavg(): FileReply<[number, number, number]>;
13  export function op_runtime_info(): [
14    pid: number,
15    os: "linux" | "macos" | "windows",
16    arch: "x86_64" | "aarch64",
17    version: string,
18    v8: string,
19    args: string[],
20  ];
21  export function op_pledge(request: import("./pledge.js").PledgeRow[]): string | null;
22}