sugoidogo
  • Joined on 2025-12-15

@sugoidogo/web-filesystem-types (2.0.0)

Published 2026-01-20 15:37:26 +00:00 by sugoidogo in sugoidogo/web-filesystem-types

Installation

@sugoidogo:registry=https://gitea.sugoidogo.com/api/packages/sugoidogo/npm/
npm install @sugoidogo/web-filesystem-types@2.0.0
"@sugoidogo/web-filesystem-types": "2.0.0"

About this package

Web Filesystem Types

These types are copied (literally) from @types/web to provide the Web FileSystem API interfaces for Node libraries to implement for a cross-platform filesystem api.

Usage

If you're developing a Node program that uses a library which uses the Web FileSystem API, you do not need this library. You may be looking for an implementation such as Node FileSystem Adapter

If you're developing a library that uses the web filesystem api but is otherwise compatible with node and web, forgo the @types/node and @types/web packages and instead use this package alongside @sugoidogo/node-web-globals and modify your tsconfig.json like so:

tsconfig.json
{
    "compilerOptions":{
        "types": [
            "@sugoidogo/node-web-globals",
            "@sugoidogo/web-filesystem-types"
        ],
    }
}

If you're developing a Web FileSystem implementation for node, then use the @types/node package like usual and just add this library to your tsconfig types:

tsconfig.json
{
    "compilerOptions":{
        "types": [
            "node",
            "@sugoidogo/web-filesystem-types"
        ],
    }
}

Dependencies

Dependencies

ID Version
@sugoidogo/node-web-globals ^1.0.0

Development Dependencies

ID Version
@types/node ^25.0.9
@types/web ^0.0.319
typescript ^5.9.3
Details
npm
2026-01-20 15:37:26 +00:00
23
SugoiDogo
Apache-2.0
latest
5.6 KiB
Assets (1)
Versions (2) View all
2.0.0 2026-01-20
1.0.0 2026-01-20