@cobol-ts/projection-typescript 0.0.14 → 0.0.16
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 +12 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -4,6 +4,18 @@ Generate named TypeScript projection-view types from an **authored projection de
|
|
|
4
4
|
|
|
5
5
|
This package does not read COBOL copybooks or a copybook AST. The authored projection is authoritative about the members exposed to consumers; its source field paths belong to the runtime projection and source-validation layers.
|
|
6
6
|
|
|
7
|
+
## Quick orientation
|
|
8
|
+
|
|
9
|
+
**Responsibility.** Render consumer-facing TypeScript types from an authored projection definition.
|
|
10
|
+
|
|
11
|
+
**Boundary.** The projection definition, not the COBOL copybook, determines the members and names exposed by these types.
|
|
12
|
+
|
|
13
|
+
**Public modules.** [projection.typescript.ts](./src/projection.typescript.ts).
|
|
14
|
+
|
|
15
|
+
**Tests.** [projection.typescript.spec.ts](src/projection.typescript.spec.ts)
|
|
16
|
+
|
|
17
|
+
**Related packages.** [@cobol-ts/cursor-projection](../../cursor-loader/projection/README.md) · [@cobol-ts/codegen](../codegen/README.md).
|
|
18
|
+
|
|
7
19
|
## API
|
|
8
20
|
|
|
9
21
|
```typescript
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobol-ts/projection-typescript",
|
|
3
3
|
"description": "Generate named TypeScript projection view contracts from authored projection definitions",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.16",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"types": "dist/index",
|
|
7
7
|
"browserslist": {
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
]
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cobol-ts/cursor-loader-types": "0.0.
|
|
21
|
-
"@cobol-ts/arrays": "0.0.
|
|
22
|
-
"@cobol-ts/errors": "0.0.
|
|
20
|
+
"@cobol-ts/cursor-loader-types": "0.0.16",
|
|
21
|
+
"@cobol-ts/arrays": "0.0.16",
|
|
22
|
+
"@cobol-ts/errors": "0.0.16"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"typescript": "^5.2.2",
|