react-state-monad 1.0.4 → 1.0.6

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/index.ts ADDED
@@ -0,0 +1,9 @@
1
+ export * from "./src/hooks/useFieldState";
2
+ export * from "./src/hooks/useElementState";
3
+ export * from "./src/hooks/useEmptyState";
4
+ export * from "./src/hooks/useFieldState";
5
+ export * from "./src/hooks/useRemapArray";
6
+ export * from "./src/hooks/useStateObject";
7
+ export * from "./src/stateObject";
8
+
9
+
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-state-monad",
3
3
  "type": "module",
4
- "version": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "description": "A set of hooks to manage/transform/filter states with monads in React",
6
6
  "keywords": [
7
7
  "maybe",
package/tsconfig.json CHANGED
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "moduleResolution": "Node",
4
- "outDir": "dist", // Carpeta donde se genera el código compilado
5
- "declaration": true, // Genera archivos de definición de tipos
6
- "declarationDir": "dist/types",
7
- "module": "ESNext", // Utiliza ESNext para módulos
8
- "target": "ESNext", // Puedes cambiarlo a otra versión de JS si lo necesitas
9
- "esModuleInterop": true // Asegura que las importaciones se manejen correctamente
3
+ "module": "ESNext", // Para exportar módulos ES6
4
+ "target": "ESNext", // Para tener soporte de sintaxis moderna
5
+ "declaration": true, // Para generar archivos de tipo .d.ts
6
+ "declarationDir": "dist/types", // Para poner los archivos .d.ts en un directorio separado
7
+ "outDir": "dist", // Para compilar el código en dist/
8
+ "moduleResolution": "Node", // Para resolución de módulos similar a Node.js
9
+ "esModuleInterop": true, // Para interoperabilidad con módulos CommonJS
10
+ "strict": true // Para que TypeScript sea más estricto en el tipo de los archivos
10
11
  },
11
12
  "include": [
12
13
  "src/**/*"
13
- ],
14
- "exclude": [
15
- "node_modules"
16
14
  ]
17
15
  }
package/src/index.ts DELETED
@@ -1,9 +0,0 @@
1
- export * from "./hooks/useFieldState";
2
- export * from "./hooks/useElementState";
3
- export * from "./hooks/useEmptyState";
4
- export * from "./hooks/useFieldState";
5
- export * from "./hooks/useRemapArray";
6
- export * from "./hooks/useStateObject";
7
- export * from "./stateObject";
8
-
9
-