TypeScript type definitions for .NET 10 BCL (Base Class Library) - CLR naming
npm install @tsonic/dotnet-pureTypeScript type definitions for .NET 10 BCL (Base Class Library) with CLR naming conventions.
> Note: This package uses PascalCase member names (e.g., GetEnumerator, Count). For camelCase TypeScript-style naming, use @tsonic/dotnet instead.
- Complete .NET 10 BCL coverage - 130 namespaces, 4,296 types, 50,675 members
- CLR naming conventions - PascalCase members matching .NET exactly
- Friendly generic aliases - Use List instead of List_1
- Primitive aliases - int, long, decimal, etc. via @tsonic/core
- Full type safety - Zero TypeScript errors
``bash`
npm install @tsonic/dotnet-pure @tsonic/core
`typescript
import type { List } from "@tsonic/dotnet-pure/System.Collections.Generic.js";
import type { int } from "@tsonic/core/types.js";
const list: List
list.Add(42 as int); // PascalCase: Add, not add
const count = list.Count; // PascalCase: Count, not count
const enumerator = list.GetEnumerator(); // PascalCase: GetEnumerator
`
| Feature | @tsonic/dotnet | @tsonic/dotnet-pure |
|---------|----------------|---------------------|
| Methods | getEnumerator() | GetEnumerator() |count
| Properties | | Count |
| Style | TypeScript/JS convention | CLR/C# convention |
- @tsonic/dotnet - For TypeScript projects preferring JS naming conventions
- @tsonic/dotnet-pure - For projects requiring exact CLR name matching (e.g., reflection, interop)
`bash`
./__build/scripts/generate.sh
Prerequisites:
- .NET 10 SDK installed
- tsbindgen repository cloned at ../tsbindgen
Environment variables:
- DOTNET_VERSION - .NET runtime version (default: 10.0.1)DOTNET_HOME
- - .NET installation directory (default: $HOME/.dotnet`)
MIT