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"
],
}
}