UNPKG

@huggingface/transformers

Version:

State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server!

39 lines (34 loc) • 950 B
/** * Type definitions for the Cross-Origin Storage API * Source: https://github.com/WICG/cross-origin-storage/blob/main/cross-origin-storage.d.ts * @see https://github.com/WICG/cross-origin-storage */ /** * Represents the dictionary for hash algorithms and values. */ interface CrossOriginStorageRequestFileHandleHash { value: string; algorithm: string; } /** * Represents the options for requesting file handles. */ interface CrossOriginStorageRequestFileHandleOptions { create?: boolean; } /** * The CrossOriginStorageManager interface. * [SecureContext] */ interface CrossOriginStorageManager { requestFileHandles( hashes: CrossOriginStorageRequestFileHandleHash[], options?: CrossOriginStorageRequestFileHandleOptions, ): Promise<FileSystemFileHandle[]>; } /** * Augment the standard Navigator interface. */ interface Navigator { readonly crossOriginStorage: CrossOriginStorageManager; }