@solidrt/flux-types 0.0.9 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +10 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -8,6 +8,16 @@ declare module "flux:process" {
8
8
  * `argv[1]` onward are the user-supplied arguments.
9
9
  */
10
10
  export let argv: string[]
11
+ /** The host OS: "darwin", "win32", "linux", "android", ... */
12
+ export let platform: string
13
+ /** The CPU architecture: "x64", "arm64", ... */
14
+ export let arch: string
15
+ /**
16
+ * Current-process memory usage. `rss` is the resident set size in bytes.
17
+ * (Node also reports heapTotal/heapUsed/external/arrayBuffers; only rss is
18
+ * provided for now.)
19
+ */
20
+ export function memoryUsage(): { rss: number }
11
21
  /**
12
22
  * Listen for an OS signal. The callback receives the signal name. Returns an
13
23
  * unsubscribe function. Unix only; a no-op elsewhere.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidrt/flux-types",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "license": "MIT",
5
5
  "author": "Antoine van Wel",
6
6
  "types": "index.d.ts",