mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
16 lines
590 B
TypeScript
16 lines
590 B
TypeScript
/////////////////////////////
|
|
/// Window Async Iterable APIs
|
|
/////////////////////////////
|
|
|
|
interface FileSystemDirectoryHandle {
|
|
[Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>;
|
|
entries(): AsyncIterableIterator<[string, FileSystemHandle]>;
|
|
keys(): AsyncIterableIterator<string>;
|
|
values(): AsyncIterableIterator<FileSystemHandle>;
|
|
}
|
|
|
|
interface ReadableStream<R = any> {
|
|
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
|
|
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
|
|
}
|