react-state-monad 1.0.3 → 1.0.4

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-state-monad",
3
3
  "type": "module",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "description": "A set of hooks to manage/transform/filter states with monads in React",
6
6
  "keywords": [
7
7
  "maybe",
package/src/index.ts CHANGED
@@ -1,3 +1,9 @@
1
- import {StateObject} from "./stateObject";
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
+
2
9
 
3
- // an empty index just to make tsc happy
package/tsconfig.json CHANGED
@@ -1,20 +1,17 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "esnext", // Usar un target moderno compatible
4
- "module": "esnext", // Usar módulos ES
5
- "moduleResolution": "node", // Resolución de módulos tipo Node
6
- "declaration": true, // Generar los archivos .d.ts
7
- "declarationDir": "./dist/types", // El directorio de las declaraciones de tipo
8
- "outDir": "./dist", // El directorio de salida para el bundle
9
- "strict": true, // Habilitar el modo estricto
10
- "esModuleInterop": true, // Interoperabilidad con módulos ES
11
- "skipLibCheck": true, // Omitir la comprobación de bibliotecas
12
- "forceConsistentCasingInFileNames": true // Forzar la consistencia de las mayúsculas/minúsculas en los nombres de archivo
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
13
10
  },
14
11
  "include": [
15
- "src/**/*" // Incluir los archivos fuente de la carpeta src
12
+ "src/**/*"
16
13
  ],
17
14
  "exclude": [
18
- "node_modules" // Excluir node_modules
15
+ "node_modules"
19
16
  ]
20
17
  }