forge-type 1.0.0 → 1.0.2
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/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ForgeType
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
ForgeType is a TypeScript utility library that **automatically generates types/interfaces** from backend JSON data.
|
|
4
4
|
It also supports **enum detection** for short string fields and helps speed up frontend development by reducing boilerplate code.
|
|
5
5
|
|
|
6
6
|
## Features
|
|
@@ -15,9 +15,9 @@ It also supports **enum detection** for short string fields and helps speed up f
|
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
# Scoped package (public)
|
|
18
|
-
npm install
|
|
18
|
+
npm install forge-type
|
|
19
19
|
|
|
20
|
-
import { createTypeFromData } from '
|
|
20
|
+
import { createTypeFromData } from 'forge-type'
|
|
21
21
|
|
|
22
22
|
const userData = {
|
|
23
23
|
id: 1,
|