react-state-monad 1.0.4 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- package/index.ts +9 -0
- package/package.json +1 -1
- package/tsconfig.json +8 -10
- package/src/index.ts +0 -9
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
package/tsconfig.json
CHANGED
@@ -1,17 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"compilerOptions": {
|
3
|
-
"
|
4
|
-
"
|
5
|
-
"declaration": true,
|
6
|
-
"declarationDir": "dist/types",
|
7
|
-
"
|
8
|
-
"
|
9
|
-
"esModuleInterop": true
|
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
|
-
|