@sugoidogo/web-filesystem-types (2.0.0)
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 |