@solidrt/flux-types 0.0.10 → 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 +6 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -12,6 +12,12 @@ declare module "flux:process" {
12
12
  export let platform: string
13
13
  /** The CPU architecture: "x64", "arm64", ... */
14
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 }
15
21
  /**
16
22
  * Listen for an OS signal. The callback receives the signal name. Returns an
17
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.10",
3
+ "version": "0.0.11",
4
4
  "license": "MIT",
5
5
  "author": "Antoine van Wel",
6
6
  "types": "index.d.ts",