@tsonic/tsbindgen 0.7.52 → 0.7.53

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
@@ -10,6 +10,7 @@ tsbindgen generates TypeScript declaration files (`.d.ts`) from .NET assemblies
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
12
  - **CLR primitives** - Numeric type aliases (`int`, `long`, `decimal`, etc.) via `@tsonic/core`
13
+ - **Broad CLR object safety** - `System.Object` projects to TypeScript `unknown`, and value-type constraints project to `NonNullable<unknown>`
13
14
  - **CLR-faithful names** - No casing transforms; member names match the CLR surface
14
15
  - **Generic type preservation** - Full generic type parameter support with constraints
15
16
  - **Unified bindings manifest** - CLR-specific information lives in `<Namespace>/bindings.json` (no metadata sidecars)
@@ -258,6 +259,12 @@ CLR primitive types map to type aliases from `@tsonic/core`:
258
259
  | `System.Boolean` | `bool` (branded) |
259
260
  | `System.String` | `string` |
260
261
  | `System.Char` | `char` (branded) |
262
+ | `System.Object` | `unknown` |
263
+ | `System.ValueType` constraint | `NonNullable<unknown>` |
264
+
265
+ `unknown` is intentional: it is the TypeScript boundary type for a broad CLR
266
+ object slot. Generated packages do not import a package-specific catch-all value
267
+ type for `System.Object`; callers narrow or adapt broad values explicitly.
261
268
 
262
269
  ### Generic Types
263
270
 
package/lib/tsbindgen.dll CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsonic/tsbindgen",
3
- "version": "0.7.52",
3
+ "version": "0.7.53",
4
4
  "description": "Generate TypeScript declarations from .NET assemblies",
5
5
  "type": "module",
6
6
  "bin": {