mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Updated some APIs with @param defintions. Added .impl suffix to the ImageSource module.
This commit is contained in:
14
console/console.d.ts
vendored
14
console/console.d.ts
vendored
@@ -5,36 +5,49 @@
|
||||
export declare class Console {
|
||||
/**
|
||||
* Begins counting a time span for a given name (key).
|
||||
* @param reportName The key for the operation.
|
||||
*/
|
||||
public time(reportName: string): void;
|
||||
|
||||
/**
|
||||
* Ends a previously started time span through the time method.
|
||||
* @param reportName The key for the operation. Must have an already started time(reportName) operation with the same key.
|
||||
*/
|
||||
public timeEnd(reportName: string): void;
|
||||
|
||||
/**
|
||||
* Asserts a boolean condition and prints a message in case the assert fails.
|
||||
* @param test A value that should not be Falsy.
|
||||
* @param message The message to be displayed in case the asserted value is Falsy.
|
||||
* @param formatParams Optional formatting parameters to be applied to the printed message.
|
||||
*/
|
||||
public assert(test: boolean, message: string, ...formatParams: any[]): void;
|
||||
|
||||
/**
|
||||
* Reports some information.
|
||||
* @param message The information message to be printed to the console.
|
||||
* @param formatParams Optional formatting parameters to be applied to the printed message.
|
||||
*/
|
||||
public info(message: any, ...formatParams: any[]): void;
|
||||
|
||||
/**
|
||||
* Reports a warning.
|
||||
* @param message The warning message to be printed to the console.
|
||||
* @param formatParams Optional formatting parameters to be applied to the printed message.
|
||||
*/
|
||||
public warn(message: any, ...formatParams: any[]): void;
|
||||
|
||||
/**
|
||||
* Reports an error.
|
||||
* @param message The error message to be printed to the console.
|
||||
* @param formatParams Optional formatting parameters to be applied to the printed message.
|
||||
*/
|
||||
public error(message: any, ...formatParams: any[]): void;
|
||||
|
||||
/**
|
||||
* Verbously logs a message.
|
||||
* @param message The message to be printed to the console.
|
||||
* @param formatParams Optional formatting parameters to be applied to the printed message.
|
||||
*/
|
||||
public log(message: any, ...formatParams: any[]): void;
|
||||
|
||||
@@ -45,6 +58,7 @@ export declare class Console {
|
||||
|
||||
/**
|
||||
* Prints the state of the specified object to the console.
|
||||
* @param obj The object instance to be dumped.
|
||||
*/
|
||||
public dump(obj: any): void;
|
||||
}
|
||||
Reference in New Issue
Block a user