@fkws/klonk 0.0.23 → 0.0.24

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/dist/index.d.ts +4 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -24,16 +24,16 @@ declare function isOk<
24
24
  T,
25
25
  E
26
26
  >(r: Railroad<T, E>): r is {
27
- success: true
28
- data: T
27
+ readonly success: true
28
+ readonly data: T
29
29
  };
30
30
  /** Type guard: returns true if the Railroad is an error */
31
31
  declare function isErr<
32
32
  T,
33
33
  E
34
34
  >(r: Railroad<T, E>): r is {
35
- success: false
36
- error: E
35
+ readonly success: false
36
+ readonly error: E
37
37
  };
38
38
  /** Returns the data if success, throws the error if failure (like Rust's unwrap) */
39
39
  declare function unwrap<
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fkws/klonk",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "A lightweight, extensible workflow automation engine for Node.js and Bun",
5
5
  "repository": "https://github.com/klar-web-services/klonk",
6
6
  "homepage": "https://klonk.dev",