Comparing version 4.0.1-beta.11 to 4.0.1-beta.12
@@ -7,3 +7,3 @@ /* | ||
* | ||
* Version 4.0.1-beta.11, Fri Feb 16 2024 | ||
* Version 4.0.1-beta.12, Fri Mar 01 2024 | ||
* | ||
@@ -367,4 +367,19 @@ * https://dexie.org | ||
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 declare const PropModSymbol: unique symbol; | ||
export type PropModSpec = { | ||
replacePrefix?: [ | ||
string, | ||
string | ||
]; | ||
}; | ||
export class PropModification implements PropModSpec { | ||
[PropModSymbol]?: true; | ||
replacePrefix?: [ | ||
string, | ||
string | ||
]; | ||
constructor(spec: PropModSpec); | ||
} | ||
export type UpdateSpec<T> = { | ||
[KP in KeyPaths<T>]?: KeyPathValue<T, KP>; | ||
[KP in KeyPaths<T>]?: KeyPathValue<T, KP> | PropModification; | ||
}; | ||
@@ -1145,2 +1160,3 @@ export interface Collection<T = any, TKey = IndexableType, TInsertType = T> { | ||
export function cmp(a: any, b: any): number; | ||
export function replacePrefix(a: string, b: string): PropModification; | ||
/** Exporting 'Dexie' as the default export. | ||
@@ -1147,0 +1163,0 @@ **/ |
{ | ||
"name": "dexie", | ||
"version": "4.0.1-beta.11", | ||
"version": "4.0.1-beta.12", | ||
"description": "A Minimalistic Wrapper for IndexedDB", | ||
@@ -5,0 +5,0 @@ "main": "dist/dexie.js", |
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
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
2935404
19004