@tsonic/tsbindgen 0.7.14 → 0.7.17
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 -7
- package/lib/tsbindgen.dll +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,13 +6,16 @@ tsbindgen generates TypeScript declaration files (`.d.ts`) from .NET assemblies
|
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
9
|
-
- **Complete BCL coverage** - Generates declarations for all 130 BCL namespaces, 4,
|
|
9
|
+
- **Complete BCL coverage** - Generates declarations for all 130 BCL namespaces, 4,047 types
|
|
10
10
|
- **Zero TypeScript errors** - Output validates cleanly with `tsc --strict`
|
|
11
|
-
- **
|
|
11
|
+
- **Nullable reference types** - NRT support for output positions (returns, properties, fields)
|
|
12
|
+
- **CLR primitives** - Numeric type aliases (`int`, `long`, `decimal`, etc.) via `@tsonic/core`
|
|
12
13
|
- **Dual naming modes** - CLR PascalCase (`GetEnumerator`) or JavaScript camelCase (`getEnumerator`)
|
|
13
14
|
- **Generic type preservation** - Full generic type parameter support with constraints
|
|
14
|
-
- **Metadata sidecars** - CLR-specific information (static, virtual, override) in companion JSON files
|
|
15
|
-
- **Library mode** - Generate only your assembly's types, importing BCL types from
|
|
15
|
+
- **Metadata sidecars** - CLR-specific information (static, virtual, override, ref/out/in) in companion JSON files
|
|
16
|
+
- **Library mode** - Generate only your assembly's types, importing BCL types from pre-existing packages
|
|
17
|
+
- **Namespace mapping** - Customize output directory names with `--namespace-map`
|
|
18
|
+
- **Class flattening** - Export static class methods as top-level functions with `--flatten-class`
|
|
16
19
|
|
|
17
20
|
## Installation
|
|
18
21
|
|
|
@@ -85,7 +88,9 @@ npx tsbindgen generate -a ./MyLibrary.dll -d $DOTNET_RUNTIME -o ./my-lib --lib .
|
|
|
85
88
|
| `--out-dir` | `-o` | Output directory for generated files | `out` |
|
|
86
89
|
| `--namespaces` | `-n` | Comma-separated namespace filter | (all) |
|
|
87
90
|
| `--naming` | - | Naming convention: `js` (camelCase) or `clr` (PascalCase) | `clr` |
|
|
88
|
-
| `--lib` | - | Path to pre-existing
|
|
91
|
+
| `--lib` | - | Path to pre-existing tsbindgen package (repeatable) | - |
|
|
92
|
+
| `--namespace-map` | - | Map CLR namespace to output name (repeatable) | - |
|
|
93
|
+
| `--flatten-class` | - | Flatten static class to top-level exports (repeatable) | - |
|
|
89
94
|
| `--verbose` | `-v` | Enable detailed progress output | false |
|
|
90
95
|
| `--logs` | - | Enable specific log categories (comma-separated) | - |
|
|
91
96
|
| `--strict` | - | Enable strict mode validation | false |
|
|
@@ -134,7 +139,7 @@ output/
|
|
|
134
139
|
|
|
135
140
|
### Primitive Types
|
|
136
141
|
|
|
137
|
-
CLR primitive types map to type aliases from `@tsonic/
|
|
142
|
+
CLR primitive types map to type aliases from `@tsonic/core`:
|
|
138
143
|
|
|
139
144
|
| CLR Type | TypeScript Type |
|
|
140
145
|
|----------|----------------|
|
|
@@ -254,7 +259,7 @@ dotnet run --project src/tsbindgen/tsbindgen.csproj -- <args>
|
|
|
254
259
|
|
|
255
260
|
- **[@tsonic/dotnet](https://www.npmjs.com/package/@tsonic/dotnet)** - Pre-generated BCL types with JavaScript naming
|
|
256
261
|
- **[@tsonic/dotnet-pure](https://www.npmjs.com/package/@tsonic/dotnet-pure)** - Pre-generated BCL types with CLR naming
|
|
257
|
-
- **[@tsonic/
|
|
262
|
+
- **[@tsonic/core](https://www.npmjs.com/package/@tsonic/core)** - Tsonic runtime types and primitives
|
|
258
263
|
|
|
259
264
|
## License
|
|
260
265
|
|
package/lib/tsbindgen.dll
CHANGED
|
Binary file
|