dotvvm-types 4.2.0-preview02-final → 4.2.0-preview03-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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/index.d.ts +7 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dotvvm-types",
3
- "version": "4.2.0-preview02-final",
3
+ "version": "4.2.0-preview03-final",
4
4
  "description": "MVVM framework for ASP.NET",
5
5
  "types": "./types/index.d.ts",
6
6
  "repository": {
package/types/index.d.ts CHANGED
@@ -168,7 +168,7 @@ declare module "utils/evaluator" {
168
168
  * @returns found property as unwrapped object
169
169
  */
170
170
  export function traverseContext(context: any, path: string): any;
171
- export function findPathToChildObject(vm: any, child: any, path: string): string | null;
171
+ export function findPathToChildObservable(vm: any, child: any, path: string): string | null;
172
172
  export function getDataSourceItems(viewModel: any): Array<KnockoutObservable<any>>;
173
173
  export function wrapObservable(func: () => any, isArray?: boolean): KnockoutComputed<any>;
174
174
  export const unwrapComputedProperty: (obs: any) => any;
@@ -191,7 +191,9 @@ declare module "state-manager" {
191
191
  export const currentStateSymbol: unique symbol;
192
192
  export const notifySymbol: unique symbol;
193
193
  export const lastSetErrorSymbol: unique symbol;
194
- const updateSymbol: unique symbol;
194
+ export const internalPropCache: unique symbol;
195
+ export const updateSymbol: unique symbol;
196
+ export const updatePropertySymbol: unique symbol;
195
197
  export function getIsViewModelUpdating(): boolean;
196
198
  export type UpdatableObjectExtensions<T> = {
197
199
  [notifySymbol]: (newValue: T) => void;
@@ -677,7 +679,8 @@ declare module "binding-handlers/register" {
677
679
  export default _default_12;
678
680
  }
679
681
  declare module "postback/staticCommand" {
680
- export function staticCommandPostback(command: string, args: any[], options: PostbackOptions): Promise<any>;
682
+ export function resolveRelativeValidationPaths(paths: string[] | null | undefined, context: KnockoutBindingContext | undefined): (string | null)[] | undefined;
683
+ export function staticCommandPostback(command: string, args: any[], options: PostbackOptions, paths: string[] | null | undefined): Promise<any>;
681
684
  }
682
685
  declare module "controls/routeLink" {
683
686
  export function buildRouteUrl(routePath: string, params: any): string;
@@ -940,7 +943,7 @@ declare type PostbackOptions = {
940
943
  readonly args: any[];
941
944
  readonly sender?: HTMLElement;
942
945
  readonly viewModel?: any;
943
- readonly knockoutContext?: any;
946
+ readonly knockoutContext?: KnockoutBindingContext;
944
947
  serverResponseObject?: any;
945
948
  validationTargetPath?: string;
946
949
  abortSignal?: AbortSignal;