Socket
Socket
Sign inDemoInstall

@types/wicg-file-system-access

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2020.9.8 to 2023.10.0

44

wicg-file-system-access/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for non-npm package File System Access API 2020.09
// Type definitions for non-npm package File System Access API 2023.10
// Project: https://github.com/WICG/file-system-access

@@ -33,14 +33,33 @@ // Definitions by: Ingvar Stepanyan <https://github.com/RReverser>

type FileSystemHandleUnion = FileSystemFileHandle | FileSystemDirectoryHandle;
type FileExtension = `.${string}`
type MIMEType = `${string}/${string}`
interface FilePickerAcceptType {
/**
* @default ""
*/
description?: string | undefined;
accept: Record<string, string | string[]>;
accept?: Record<MIMEType, FileExtension | FileExtension[]> | undefined;
}
/**
* https://wicg.github.io/file-system-access/#enumdef-wellknowndirectory
*/
type WellKnownDirectory = "desktop" | "documents" | "downloads" | "music" | "pictures" | "videos"
interface FilePickerOptions {
types?: FilePickerAcceptType[] | undefined;
/**
* @default false
*/
excludeAcceptAllOption?: boolean | undefined;
startIn?: WellKnownDirectory | FileSystemHandle | undefined;
id?: string | undefined;
}
interface OpenFilePickerOptions extends FilePickerOptions {
/**
* @default false
*/
multiple?: boolean | undefined;

@@ -50,12 +69,21 @@ }

interface SaveFilePickerOptions extends FilePickerOptions {
suggestedName?: string;
suggestedName?: string | undefined;
}
// tslint:disable-next-line:no-empty-interface
interface DirectoryPickerOptions {}
type FileSystemPermissionMode = "read" | "readwrite"
type FileSystemPermissionMode = "read" | "readwrite";
interface DirectoryPickerOptions {
id?: string | undefined;
startIn?: WellKnownDirectory | FileSystemHandle | undefined;
/**
* @default "read"
*/
mode?: FileSystemPermissionMode | undefined;
}
interface FileSystemPermissionDescriptor extends PermissionDescriptor {
handle: FileSystemHandle;
/**
* @default "read"
*/
mode?: FileSystemPermissionMode | undefined;

@@ -65,5 +93,9 @@ }

interface FileSystemHandlePermissionDescriptor {
/**
* @default "read"
*/
mode?: FileSystemPermissionMode | undefined;
}
// TODO: Implemented natively in TS 5.1, remove
interface FileSystemCreateWritableOptions {

@@ -70,0 +102,0 @@ keepExistingData?: boolean | undefined;

4

wicg-file-system-access/package.json
{
"name": "@types/wicg-file-system-access",
"version": "2020.9.8",
"version": "2023.10.0",
"description": "TypeScript definitions for File System Access API",

@@ -30,4 +30,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wicg-file-system-access",

"dependencies": {},
"typesPublisherContentHash": "dbea9a70212a108e6db9e0d8744c7d2370aa47c62d381576a5b0d8c49081c630",
"typesPublisherContentHash": "b9c3592e5441443ccce11d43d8b949236c1e24e3d8e35ba8f42789e8466a84a9",
"typeScriptVersion": "4.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Mon, 25 Sep 2023 13:39:07 GMT
* Last updated: Tue, 03 Oct 2023 17:35:01 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc