Comparing version 4.0.1-alpha.6 to 4.0.1-alpha.7
@@ -7,3 +7,3 @@ /* | ||
* | ||
* Version 4.0.1-alpha.6, Tue Jan 17 2023 | ||
* Version 4.0.1-alpha.7, Wed Jan 25 2023 | ||
* | ||
@@ -361,7 +361,6 @@ * https://dexie.org | ||
export type KeyPaths<T> = { | ||
[P in keyof T]: P extends string ? T[P] extends any[] ? P : T[P] extends (...args: any[]) => any // Method | ||
[P in keyof T]: P extends string ? T[P] extends any[] ? P | `${P}.${number}` | `${P}.${number}.${KeyPaths<T[P][number]>}` : T[P] extends (...args: any[]) => any // Method | ||
? never : T[P] extends object ? P | `${P}.${KeyPaths<T[P]>}` : P : never; | ||
}[keyof T]; | ||
export type Extract<T, P> = P extends keyof T ? T[P] : void; | ||
export type KeyPathValue<T, PATH> = PATH extends `${infer R}.${infer S}` ? R extends keyof T ? Extract<T[R], S> : void : Extract<T, PATH>; | ||
export type KeyPathValue<T, PATH> = PATH extends `${infer R}.${infer S}` ? R extends keyof T ? KeyPathValue<T[R], S> : T extends any[] ? PATH extends `${number}.${infer S}` ? KeyPathValue<T[number], S> : void : void : PATH extends `${number}` ? T extends any[] ? T[number] : void : PATH extends keyof T ? T[PATH] : void; | ||
export type UpdateSpec<T> = { | ||
@@ -368,0 +367,0 @@ [KP in KeyPaths<T>]?: KeyPathValue<T, KP>; |
{ | ||
"name": "dexie", | ||
"version": "4.0.1-alpha.6", | ||
"version": "4.0.1-alpha.7", | ||
"description": "A Minimalistic Wrapper for IndexedDB", | ||
@@ -35,3 +35,3 @@ "main": "dist/dexie.js", | ||
"typings": "dist/dexie.d.ts", | ||
"packageManager": "^pnpm@7.9.5", | ||
"packageManager": "pnpm@7.25.1", | ||
"jspm": { | ||
@@ -133,3 +133,3 @@ "format": "cjs", | ||
"tslib": "^2.1.0", | ||
"typescript": "^4.3.4", | ||
"typescript": "^4.9.4", | ||
"uglify-js": "^3.9.2" | ||
@@ -136,0 +136,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
2621462