TypeScript declarations and metadata for .NET 10.0 assemblies
npm install @tsonic/dotnet-typesTypeScript declarations and metadata for .NET 10.0
.NET Version: 10.0.0-rc.1.25451.107
Package Version: 10.0.0
Assemblies: 38 (76 files)
Generated: 2025-11-02
``bash`
npm install @tsonic/dotnet-types@10.0.0
This package provides TypeScript declaration files (.d.ts) and C# metadata (.metadata.json) for the .NET 10 Base Class Library:
- Collections - System.Collections, Concurrent, Immutable, Specialized
- LINQ - System.Linq, Expressions, Parallel, Queryable, AsyncEnumerable
- I/O - System.IO, FileSystem, Compression, Pipes
- Text - System.Text.Json, RegularExpressions, Encoding
- Networking - System.Net.Http, Sockets, WebSockets
- Threading - System.Threading, Tasks, Channels
- Data & XML - System.Data, System.Xml
- Security - System.Security.Cryptography, Claims
- Diagnostics - System.Diagnostics.Process, DiagnosticSource
- Core - System.Runtime, Console, ComponentModel, Reflection, Memory
The Tsonic compiler will automatically discover these files when the package is installed:
`typescript
// Your TypeScript code targeting .NET 10
import { List } from "System.Collections.Generic";
const names = new List
names.Add("Alice");
`
All type files are located in the types/ directory:
``
node_modules/@tsonic/dotnet-types/
├── types/
│ ├── index.json # Manifest
│ ├── System.Runtime.d.ts # Type declarations
│ ├── System.Runtime.metadata.json # C# metadata
│ └── ...
└── README.md
`javascript
import manifest from '@tsonic/dotnet-types/types/index.json';
console.log(manifest.dotnetVersion); // "10.0.0-rc.1.25451.107"
console.log(manifest.files); // Array of all type files
`
Each .metadata.json file contains C# semantic information that TypeScript cannot express:
- Whether methods are virtual, abstract, sealed, or override
- Type kinds (class, struct, interface, enum)
- Base types and implemented interfaces
- Member accessibility (public, protected, private, internal)
The Tsonic compiler uses this metadata to generate correct C# code with proper inheritance semantics.
This package contains declarations for .NET 10.0 only. For other versions:
- .NET 9: npm install @tsonic/dotnet-types@9.0.0 (coming soon)npm install @tsonic/dotnet-types@11.0.0` (coming soon)
- .NET 11:
See the main repository for all available versions.
These files are generated artifacts. To regenerate:
1. Use the generatedts tool
2. Run against the .NET 10.0 runtime
3. Copy output to this package
MIT - See LICENSE