react-state-monad 1.0.3 → 1.0.5

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.5",
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,15 @@
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
+ "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
13
11
  },
14
12
  "include": [
15
- "src/**/*" // Incluir los archivos fuente de la carpeta src
16
- ],
17
- "exclude": [
18
- "node_modules" // Excluir node_modules
13
+ "src/**/*"
19
14
  ]
20
15
  }