dotvvm-types 4.1.5 → 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 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dotvvm-types",
3
- "version": "4.1.5",
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;
@@ -531,7 +533,6 @@ declare module "validation/validators" {
531
533
  };
532
534
  export const required: DotvvmValidator;
533
535
  export const regex: DotvvmValidator;
534
- export const intRange: DotvvmValidator;
535
536
  export const enforceClientFormat: DotvvmValidator;
536
537
  export const range: DotvvmValidator;
537
538
  export const notNull: DotvvmValidator;
@@ -678,7 +679,8 @@ declare module "binding-handlers/register" {
678
679
  export default _default_12;
679
680
  }
680
681
  declare module "postback/staticCommand" {
681
- 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>;
682
684
  }
683
685
  declare module "controls/routeLink" {
684
686
  export function buildRouteUrl(routePath: string, params: any): string;
@@ -941,7 +943,7 @@ declare type PostbackOptions = {
941
943
  readonly args: any[];
942
944
  readonly sender?: HTMLElement;
943
945
  readonly viewModel?: any;
944
- readonly knockoutContext?: any;
946
+ readonly knockoutContext?: KnockoutBindingContext;
945
947
  serverResponseObject?: any;
946
948
  validationTargetPath?: string;
947
949
  abortSignal?: AbortSignal;