dotvvm-types 4.3.0-preview04-final → 4.3.0-preview06-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 +6 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dotvvm-types",
3
- "version": "4.3.0-preview04-final",
3
+ "version": "4.3.0-preview06-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
@@ -5,8 +5,7 @@ declare module "shared-classes" {
5
5
  constructor(reason: DotvvmPostbackErrorReason);
6
6
  toString(): string;
7
7
  }
8
- export class CoerceError implements CoerceErrorType {
9
- message: string;
8
+ export class CoerceError extends Error implements CoerceErrorType {
10
9
  path: string;
11
10
  isError: true;
12
11
  wasCoerced: false;
@@ -155,6 +154,7 @@ declare module "metadata/coercer" {
155
154
  declare module "utils/promise" {
156
155
  /** Runs the callback in the next event loop cycle */
157
156
  export const defer: <T>(callback: () => T) => Promise<T>;
157
+ export const delay: (ms: number) => Promise<unknown>;
158
158
  }
159
159
  declare module "postback/updater" {
160
160
  export function cleanUpdatedControls(resultObject: any, updatedControls?: any): any;
@@ -559,7 +559,7 @@ declare module "postback/counter" {
559
559
  export function backUpPostBackCounter(): number;
560
560
  }
561
561
  declare module "utils/magic-navigator" {
562
- export function navigate(url: string): void;
562
+ export function navigate(url: string, downloadName?: string | null | undefined): void;
563
563
  }
564
564
  declare module "postback/redirect" {
565
565
  export function performRedirect(url: string, replace: boolean, allowSpa: boolean): Promise<any>;
@@ -815,7 +815,7 @@ declare module "dotvvm-root" {
815
815
  import * as validation from "validation/validation";
816
816
  import { postBack } from "postback/postback";
817
817
  import { serialize } from "serialization/serialize";
818
- import { serializeDate, parseDate } from "serialization/date";
818
+ import { serializeDate, parseDate, parseDateOnly, parseTimeOnly } from "serialization/date";
819
819
  import { deserialize } from "serialization/deserialize";
820
820
  import * as evaluator from "utils/evaluator";
821
821
  import * as globalize from "DotVVM.Globalize";
@@ -894,6 +894,8 @@ declare module "dotvvm-root" {
894
894
  serialize: typeof serialize;
895
895
  serializeDate: typeof serializeDate;
896
896
  parseDate: typeof parseDate;
897
+ parseDateOnly: typeof parseDateOnly;
898
+ parseTimeOnly: typeof parseTimeOnly;
897
899
  deserialize: typeof deserialize;
898
900
  };
899
901
  metadata: {