dotvvm-types 4.1.0-preview12-final → 4.1.0-preview14-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 +8 -6
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -19,10 +19,11 @@ declare module "shared-classes" {
|
|
|
19
19
|
declare module "utils/logging" {
|
|
20
20
|
type LogLevel = "normal" | "verbose";
|
|
21
21
|
export const level: LogLevel;
|
|
22
|
-
export
|
|
23
|
-
export function
|
|
24
|
-
export function
|
|
25
|
-
export function
|
|
22
|
+
export type DotvvmLoggingArea = ("debug" | "configuration" | "postback" | "spa" | "static-command" | "binding-handler" | "resource-loader" | "coercer" | "state-manager" | "validation" | "events" | "rest-api");
|
|
23
|
+
export function logInfoVerbose(area: DotvvmLoggingArea, ...args: any[]): void;
|
|
24
|
+
export function logInfo(area: DotvvmLoggingArea, ...args: any[]): void;
|
|
25
|
+
export function logWarning(area: DotvvmLoggingArea, ...args: any[]): void;
|
|
26
|
+
export function logError(area: DotvvmLoggingArea, ...args: any[]): void;
|
|
26
27
|
export function logPostBackScriptError(err: any): void;
|
|
27
28
|
/** puts the string in quotes, escaping weird characters if it is more complex than just letters */
|
|
28
29
|
export function debugQuoteString(s: string): string;
|
|
@@ -665,7 +666,7 @@ declare module "api/eventHub" {
|
|
|
665
666
|
}
|
|
666
667
|
declare module "api/api" {
|
|
667
668
|
type ApiComputed<T> = KnockoutObservable<T | null> & {
|
|
668
|
-
refreshValue: (
|
|
669
|
+
refreshValue: () => PromiseLike<any>;
|
|
669
670
|
};
|
|
670
671
|
export function invoke<T>(target: any, methodName: string, argsProvider: () => any[], refreshTriggers: (args: any[]) => Array<KnockoutObservable<any> | string>, notifyTriggers: (args: any[]) => string[], element: HTMLElement, sharingKeyProvider: (args: any[]) => string[]): ApiComputed<T>;
|
|
671
672
|
export function refreshOn<T>(value: ApiComputed<T>, watch: KnockoutObservable<any>): ApiComputed<T>;
|
|
@@ -682,12 +683,13 @@ declare module "translations/sortingHelper" {
|
|
|
682
683
|
}
|
|
683
684
|
declare module "translations/arrayHelper" {
|
|
684
685
|
import { orderBy, orderByDesc } from "translations/sortingHelper";
|
|
685
|
-
export { add, addOrUpdate, addRange, clear, distinct, firstOrDefault, insert, insertRange, lastOrDefault, max, min, orderBy, orderByDesc, removeAll, removeAt, removeFirst, removeLast, removeRange, reverse, setItem };
|
|
686
|
+
export { add, addOrUpdate, addRange, clear, distinct, contains, firstOrDefault, insert, insertRange, lastOrDefault, max, min, orderBy, orderByDesc, removeAll, removeAt, removeFirst, removeLast, removeRange, reverse, setItem };
|
|
686
687
|
function add<T>(observable: any, element: T): void;
|
|
687
688
|
function addOrUpdate<T>(observable: any, element: T, matcher: (e: T) => boolean, updater: (e: T) => T): void;
|
|
688
689
|
function addRange<T>(observable: any, elements: T[]): void;
|
|
689
690
|
function clear(observable: any): void;
|
|
690
691
|
function distinct<T>(array: T[]): T[];
|
|
692
|
+
function contains<T>(array: T[], value: T): boolean;
|
|
691
693
|
function firstOrDefault<T>(array: T[], predicate: (s: T) => boolean): T | null;
|
|
692
694
|
function insert<T>(observable: any, index: number, element: T): void;
|
|
693
695
|
function insertRange<T>(observable: any, index: number, elements: T[]): void;
|