mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
38
nativescript-core/trace/index.d.ts
vendored
38
nativescript-core/trace/index.d.ts
vendored
@@ -123,24 +123,24 @@ export namespace Trace {
|
||||
export const separator = ',';
|
||||
export const All: Array<string>;
|
||||
|
||||
export function concat(): string;
|
||||
|
||||
class ConsoleWriter implements TraceWriter {
|
||||
public write(message: any, category: string, type?: number): void;
|
||||
}
|
||||
|
||||
export class DefaultErrorHandler implements TraceErrorHandler {
|
||||
handlerError(error: any): void;
|
||||
}
|
||||
|
||||
export function getErrorHandler(): TraceErrorHandler;
|
||||
|
||||
export function setErrorHandler(handler: TraceErrorHandler): void;
|
||||
|
||||
/**
|
||||
* Passes an error to the registered ErrorHandler
|
||||
* @param error The error to be handled.
|
||||
*/
|
||||
export function error(error: string | Error): void;
|
||||
export function concat(...args: any): string;
|
||||
}
|
||||
|
||||
class ConsoleWriter implements TraceWriter {
|
||||
public write(message: any, category: string, type?: number): void;
|
||||
}
|
||||
|
||||
export class DefaultErrorHandler implements TraceErrorHandler {
|
||||
handlerError(error: any): void;
|
||||
}
|
||||
|
||||
export function getErrorHandler(): TraceErrorHandler;
|
||||
|
||||
export function setErrorHandler(handler: TraceErrorHandler): void;
|
||||
|
||||
/**
|
||||
* Passes an error to the registered ErrorHandler
|
||||
* @param error The error to be handled.
|
||||
*/
|
||||
export function error(error: string | Error): void;
|
||||
}
|
||||
|
||||
@@ -204,7 +204,7 @@ export namespace Trace {
|
||||
export const separator = ',';
|
||||
export const All = [VisualTreeEvents, Layout, Style, ViewHierarchy, NativeLifecycle, Debug, Navigation, Test, Binding, Error, Animation, Transition, Livesync, ModuleNameResolver].join(separator);
|
||||
|
||||
export function concat(): string {
|
||||
export function concat(...args: any): string {
|
||||
let result: string;
|
||||
for (let i = 0; i < arguments.length; i++) {
|
||||
if (!result) {
|
||||
|
||||
Reference in New Issue
Block a user