Comparing version 6.1.1 to 6.1.2
@@ -49,6 +49,9 @@ export interface OpenDBCallbacks<DBTypes extends DBSchema | unknown> { | ||
export { unwrap, wrap } from './wrap-idb-value'; | ||
declare type RemoveIndex<T> = { | ||
[P in keyof T as string extends P ? never : number extends P ? never : P]: T[P]; | ||
declare type KeyToKeyNoIndex<T> = { | ||
[K in keyof T]: string extends K ? never : number extends K ? never : K; | ||
}; | ||
declare type KnownKeys<T> = keyof RemoveIndex<T>; | ||
declare type ValuesOf<T> = T extends { | ||
[K in keyof T]: infer U; | ||
} ? U : never; | ||
declare type KnownKeys<T> = ValuesOf<KeyToKeyNoIndex<T>>; | ||
declare type Omit<T, K> = Pick<T, Exclude<keyof T, K>>; | ||
@@ -55,0 +58,0 @@ export interface DBSchema { |
@@ -49,6 +49,9 @@ export interface OpenDBCallbacks<DBTypes extends DBSchema | unknown> { | ||
export { unwrap, wrap } from './wrap-idb-value'; | ||
declare type RemoveIndex<T> = { | ||
[P in keyof T as string extends P ? never : number extends P ? never : P]: T[P]; | ||
declare type KeyToKeyNoIndex<T> = { | ||
[K in keyof T]: string extends K ? never : number extends K ? never : K; | ||
}; | ||
declare type KnownKeys<T> = keyof RemoveIndex<T>; | ||
declare type ValuesOf<T> = T extends { | ||
[K in keyof T]: infer U; | ||
} ? U : never; | ||
declare type KnownKeys<T> = ValuesOf<KeyToKeyNoIndex<T>>; | ||
declare type Omit<T, K> = Pick<T, Exclude<keyof T, K>>; | ||
@@ -55,0 +58,0 @@ export interface DBSchema { |
{ | ||
"name": "idb", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"description": "A small wrapper that makes IndexedDB usable", | ||
@@ -5,0 +5,0 @@ "main": "build/cjs/index.js", |
@@ -210,4 +210,2 @@ # IndexedDB with usability. | ||
These methods depend on the same methods on `IDBObjectStore`, therefore `getKey`, `getAll`, and `getAllKeys` are missing in Edge. | ||
### Shortcuts to get from an index | ||
@@ -222,3 +220,3 @@ | ||
Each method takes `storeName` and `indexName` arguments, followed by the rest of the arguments from the equivalent `IDBIndex` method. Again, these methods depend on the equivalent methods on `IDBIndex`, so Edge does not support `getKeyFromIndex`, `getAllFromIndex`, or `getAllKeysFromIndex`. | ||
Each method takes `storeName` and `indexName` arguments, followed by the rest of the arguments from the equivalent `IDBIndex` method. | ||
@@ -225,0 +223,0 @@ ## `IDBTransaction` enhancements |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
184327
2017
498