sugoidogo fc59b9f58d
/ release (push) Successful in 21s
add asyncitrable types
2026-01-20 07:36:48 -08:00
2026-01-20 05:09:42 -08:00
2026-01-20 05:09:42 -08:00
2026-01-20 07:28:35 -08:00
2026-01-20 07:36:48 -08:00
2026-01-20 05:09:42 -08:00
2026-01-20 05:09:42 -08:00

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"
        ],
    }
}
S
Description
No description provided
Readme 36 KiB