chore: cleanup

This commit is contained in:
Nathan Walker
2020-07-09 23:43:28 -07:00
parent 0ae8dba962
commit 8100cf7089
89 changed files with 493 additions and 704 deletions

View File

@@ -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;
}

View File

@@ -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) {