# @types/wicg-entries-api

> TypeScript definitions for wicg-entries-api

Latest version **2020.8.5** (published 2023-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/wicg-entries-api
pnpm add @types/wicg-entries-api
yarn add @types/wicg-entries-api
bun add @types/wicg-entries-api
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2020.8.5 |
| Published | 2023-11-21 |
| First published | 2021-05-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51440 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/wicg-entries-api
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wicg-entries-api
- npm.io page: https://npm.io/package/@types/wicg-entries-api

## Recent versions

- 2020.8.5 (latest) — 2023-11-21
- 2020.8.2 (ts3.6) — 2021-07-02
- 2020.8.0 (ts3.5) — 2021-05-10
- 2020.8.4 — 2023-11-07
- 2020.8.3 — 2023-10-18
- 2020.8.1 — 2021-07-01

## README

# Installation
> `npm install --save @types/wicg-entries-api`

# Summary
This package contains type definitions for wicg-entries-api (https://github.com/WICG/entries-api).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wicg-entries-api.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wicg-entries-api/index.d.ts)
````ts
type ErrorCallback = (err: DOMException) => void;
type FileSystemEntryCallback = (entry: FileSystemEntry) => void;
type FileSystemEntriesCallback = (entries: FileSystemEntry[]) => void;
type FileCallback = (file: File) => void;

interface FileSystemFlags {
    create?: boolean | undefined;
    exclusive?: boolean | undefined;
}

declare global {
    interface FileSystemEntry {
        readonly isFile: boolean;
        readonly isDirectory: boolean;
        readonly name: string;
        readonly fullPath: string;
        readonly filesystem: FileSystem;

        getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
    }

    interface FileSystemDirectoryEntry extends FileSystemEntry {
        createReader(): FileSystemDirectoryReader;
        getFile(
            path?: string,
            options?: FileSystemFlags,
            successCallback?: FileSystemEntryCallback,
            errorCallback?: ErrorCallback,
        ): void;
        getDirectory(
            path?: string,
            options?: FileSystemFlags,
            successCallback?: FileSystemEntryCallback,
            errorCallback?: ErrorCallback,
        ): void;
    }

    interface FileSystemDirectoryReader {
        readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
    }

    interface FileSystemFileEntry extends FileSystemEntry {
        file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;
    }

    interface FileSystem {
        readonly name: string;
        readonly root: FileSystemDirectoryEntry;
    }

    interface File {
        readonly webkitRelativePath: string;
    }

    interface HTMLInputElement {
        webkitdirectory: boolean;
        readonly webkitEntries: readonly FileSystemEntry[];
    }

    interface DataTransferItem {
        webkitGetAsEntry(): FileSystemEntry | null;
    }
}

export {};

````

### Additional Details
 * Last updated: Mon, 20 Nov 2023 23:36:24 GMT
 * Dependencies: none

# Credits
These definitions were written by [Henning Kasch](https://github.com/HenningCash), and [Ingvar Stepanyan](https://github.com/RReverser).

---
_Source: https://npm.io/package/@types/wicg-entries-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
