npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tsonic/dotnet-types

v10.0.0

Published

TypeScript declarations and metadata for .NET 10.0 assemblies

Readme

@tsonic/dotnet-types

TypeScript declarations and metadata for .NET 10.0

Version

.NET Version: 10.0.0-rc.1.25451.107 Package Version: 10.0.0 Assemblies: 38 (76 files) Generated: 2025-11-02

Installation

npm install @tsonic/[email protected]

What's Included

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

Usage

With Tsonic Compiler

The Tsonic compiler will automatically discover these files when the package is installed:

// Your TypeScript code targeting .NET 10
import { List } from "System.Collections.Generic";

const names = new List<string>();
names.Add("Alice");

File Structure

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

Programmatic Access

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

Metadata 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.

Other .NET Versions

This package contains declarations for .NET 10.0 only. For other versions:

See the main repository for all available versions.

Regeneration

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

License

MIT - See LICENSE

Related