dotvvm-types 4.3.8 → 4.3.9
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 +7 -5
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ declare module "metadata/typeMap" {
|
|
|
92
92
|
[prop: string]: PropertyMetadata;
|
|
93
93
|
};
|
|
94
94
|
export function getKnownTypes(): string[];
|
|
95
|
+
export function getCurrentTypeMap(): TypeMap;
|
|
95
96
|
export function updateTypeInfo(newTypes: TypeMap | undefined): void;
|
|
96
97
|
export function replaceTypeInfo(newTypes: TypeMap | undefined): void;
|
|
97
98
|
export function areObjectTypesEqual(currentValue: any, newVal: any): boolean;
|
|
@@ -537,6 +538,11 @@ declare module "spa/events" {
|
|
|
537
538
|
export const spaNavigated: DotvvmEvent<DotvvmSpaNavigatedEventArgs>;
|
|
538
539
|
export const spaNavigationFailed: DotvvmEvent<DotvvmSpaNavigationFailedEventArgs>;
|
|
539
540
|
}
|
|
541
|
+
declare module "metadata/metadataHelper" {
|
|
542
|
+
export function getTypeId(viewModel: object): string | undefined;
|
|
543
|
+
export function getTypeMetadata(typeId: string | object): TypeMetadata;
|
|
544
|
+
export function getEnumMetadata(enumMetadataId: string): EnumTypeMetadata;
|
|
545
|
+
}
|
|
540
546
|
declare module "dotvvm-base" {
|
|
541
547
|
import { StateManager } from "state-manager";
|
|
542
548
|
export const options: {
|
|
@@ -552,6 +558,7 @@ declare module "dotvvm-base" {
|
|
|
552
558
|
export function getState(): Readonly<RootViewModel>;
|
|
553
559
|
export function updateViewModelCache(viewModelCacheId: string, viewModelCache: any): void;
|
|
554
560
|
export function clearViewModelCache(): void;
|
|
561
|
+
export function updateInitialUrl(url: string): void;
|
|
555
562
|
export function getCulture(): string;
|
|
556
563
|
export function getStateManager(): StateManager<RootViewModel>;
|
|
557
564
|
export function initCore(culture: string): void;
|
|
@@ -777,11 +784,6 @@ declare module "controls/fileUpload" {
|
|
|
777
784
|
export function showUploadDialog(sender: HTMLElement): void;
|
|
778
785
|
export function reportProgress(inputControl: HTMLInputElement, isBusy: boolean, progress: number, result: DotvvmStaticCommandResponse<DotvvmFileUploadData[]> | string): void;
|
|
779
786
|
}
|
|
780
|
-
declare module "metadata/metadataHelper" {
|
|
781
|
-
export function getTypeId(viewModel: object): string | undefined;
|
|
782
|
-
export function getTypeMetadata(typeId: string | object): TypeMetadata;
|
|
783
|
-
export function getEnumMetadata(enumMetadataId: string): EnumTypeMetadata;
|
|
784
|
-
}
|
|
785
787
|
declare module "translations/sortingHelper" {
|
|
786
788
|
type ElementType = string | number | boolean;
|
|
787
789
|
export const orderBy: <T>(array: T[], selector: (item: T) => ElementType, typeId: string | null) => T[];
|