@tsonic/tsbindgen 0.7.39 → 0.7.41

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 CHANGED
@@ -71,6 +71,17 @@ npx tsbindgen generate -d $DOTNET_RUNTIME -o ./bcl-types
71
71
  npx tsbindgen generate -a ./MyLibrary.dll -d $DOTNET_RUNTIME -o ./my-lib --lib ./bcl-types
72
72
  ```
73
73
 
74
+ If you provide multiple `--lib` packages and the same CLR type exists in more than one of them, tsbindgen will hard-error
75
+ because it cannot safely choose an import source. In rare cases where this is expected, you can provide explicit per-type
76
+ overrides:
77
+
78
+ ```bash
79
+ npx tsbindgen generate -a ./MyLibrary.dll -d $DOTNET_RUNTIME -o ./my-lib \
80
+ --lib ./efcore-types \
81
+ --lib ./efcore-abstractions \
82
+ --lib-type-override "Microsoft.EntityFrameworkCore.DbContext=@tsonic/efcore"
83
+ ```
84
+
74
85
  ## CLI Reference
75
86
 
76
87
  ### Commands
@@ -90,6 +101,7 @@ npx tsbindgen generate -a ./MyLibrary.dll -d $DOTNET_RUNTIME -o ./my-lib --lib .
90
101
  | `--out-dir` | `-o` | Output directory for generated files | `out` |
91
102
  | `--namespaces` | `-n` | Namespace filter (reserved; currently ignored) | (all) |
92
103
  | `--lib` | - | Path to pre-existing tsbindgen package (repeatable) | - |
104
+ | `--lib-type-override` | - | Override owning package for a CLR type when merging multiple `--lib` packages (repeatable; `ClrFullName=packageName`) | - |
93
105
  | `--namespace-map` | - | Map CLR namespace to output name (repeatable) | - |
94
106
  | `--flatten-class` | - | Flatten static class to top-level exports (repeatable) | - |
95
107
  | `--verbose` | `-v` | Enable detailed progress output | false |
package/lib/tsbindgen.dll CHANGED
Binary file
package/lib/tsbindgen.pdb CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsonic/tsbindgen",
3
- "version": "0.7.39",
3
+ "version": "0.7.41",
4
4
  "description": "Generate TypeScript declarations from .NET assemblies",
5
5
  "type": "module",
6
6
  "bin": {