// Implemented by window & worker declare interface IDBEnvironment { indexedDB: IDBFactory; } type IDBDirection = 'next' | 'nextunique' | 'prev' | 'prevunique';