brick-module 0.1.24 → 0.1.25

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.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { BrickModule, BrickModuleInterface, BrickModuleSpec } from "./BrickModule.js";
2
- import { AnyObject } from "./types.js";
2
+ import { Any, AnyObject } from "./types.js";
3
3
 
4
4
  //#region src/index.d.ts
5
5
 
@@ -29,4 +29,4 @@ interface BrickCodegenConfig {
29
29
  dev?: boolean;
30
30
  }
31
31
  //#endregion
32
- export { AnyObject, BrickCodegenConfig, BrickModule, BrickModuleError, type BrickModuleInterface, type BrickModuleSpec };
32
+ export { Any, AnyObject, BrickCodegenConfig, BrickModule, BrickModuleError, type BrickModuleInterface, type BrickModuleSpec };
package/dist/types.d.ts CHANGED
@@ -1,4 +1,13 @@
1
1
  //#region src/types.d.ts
2
+ /**
3
+ * Represents any type (arrays, objects, primitives, etc.)
4
+ * Maps to Swift `Any` and Kotlin `Any`
5
+ */
6
+ type Any = any;
7
+ /**
8
+ * Represents a dictionary/object with string keys and any values
9
+ * Maps to Swift `[String: Any]` and Kotlin `WritableMap`
10
+ */
2
11
  type AnyObject = Record<string, any>;
3
12
  //#endregion
4
- export { AnyObject };
13
+ export { Any, AnyObject };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brick-module",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "Better React Native native module development",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -62,7 +62,7 @@
62
62
  "brick-codegen": "./bin/brick-codegen.js"
63
63
  },
64
64
  "dependencies": {
65
- "brick-codegen": "0.1.24"
65
+ "brick-codegen": "0.1.25"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": ">=18.2.0",
package/src/types.ts CHANGED
@@ -1 +1,11 @@
1
+ /**
2
+ * Represents any type (arrays, objects, primitives, etc.)
3
+ * Maps to Swift `Any` and Kotlin `Any`
4
+ */
5
+ export type Any = any;
6
+
7
+ /**
8
+ * Represents a dictionary/object with string keys and any values
9
+ * Maps to Swift `[String: Any]` and Kotlin `WritableMap`
10
+ */
1
11
  export type AnyObject = Record<string, any>;