dotvvm-types 4.1.0-preview16-final → 4.1.0-preview18-final
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/index.d.ts +9 -2
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -213,7 +213,11 @@ declare module "state-manager" {
|
|
|
213
213
|
patchState(patch: Partial<TViewModel>): DeepReadonly<TViewModel>;
|
|
214
214
|
update(updater: StateUpdate<TViewModel>): DeepReadonly<TViewModel>;
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
/**
|
|
217
|
+
* Recursively unwraps knockout observables from the object / array hierarchy. When nothing needs to be unwrapped, the original object is returned.
|
|
218
|
+
* @param allowStateUnwrap Allows accessing [currentStateSymbol], which makes it faster, but doesn't register in the knockout dependency tracker
|
|
219
|
+
*/
|
|
220
|
+
export function unmapKnockoutObservables(viewModel: any, allowStateUnwrap?: boolean): any;
|
|
217
221
|
}
|
|
218
222
|
declare module "serialization/deserialize" {
|
|
219
223
|
export function deserialize(viewModel: any, target?: any, deserializeAll?: boolean): any;
|
|
@@ -222,6 +226,9 @@ declare module "serialization/deserialize" {
|
|
|
222
226
|
export function deserializeArray(viewModel: any, target?: any, deserializeAll?: boolean): any;
|
|
223
227
|
export function deserializeObject(viewModel: any, target: any, deserializeAll: boolean): any;
|
|
224
228
|
export function extendToObservableArrayIfRequired(observable: any): any;
|
|
229
|
+
/** Clones only updatable properties from the object.
|
|
230
|
+
* Used after postback, to avoid updating properties which were sent to server, but weren't sent back. */
|
|
231
|
+
export function mapUpdatableProperties(viewModel: any, type?: TypeDefinition | undefined): any;
|
|
225
232
|
}
|
|
226
233
|
declare module "serialization/serialize" {
|
|
227
234
|
interface ISerializationOptions {
|
|
@@ -1098,7 +1105,7 @@ declare type TypeMetadata = ObjectTypeMetadata | EnumTypeMetadata;
|
|
|
1098
1105
|
declare type PropertyMetadata = {
|
|
1099
1106
|
type: TypeDefinition;
|
|
1100
1107
|
post?: "always" | "pathOnly" | "no";
|
|
1101
|
-
update?: "always" | "
|
|
1108
|
+
update?: "always" | "no";
|
|
1102
1109
|
validationRules?: PropertyValidationRuleInfo[];
|
|
1103
1110
|
clientExtenders?: ClientExtenderInfo[];
|
|
1104
1111
|
};
|