chore: cleanup reexports

This commit is contained in:
Nathan Walker
2020-07-05 14:53:34 -07:00
parent 1525c89733
commit 8f2900ad0b
306 changed files with 1197 additions and 1534 deletions

View File

@@ -1,8 +1,6 @@
declare var __startCPUProfiler: any;
declare var __stopCPUProfiler: any;
import { TimerInfo as TimerInfoDefinition, InstrumentationMode } from ".";
export function uptime() {
return global.android ? (<any>org).nativescript.Process.getUpTime() : (<any>global).__tns_uptime();
}
@@ -14,7 +12,9 @@ export function log(message: string): void {
console.log(message);
}
interface TimerInfo extends TimerInfoDefinition {
export type InstrumentationMode = "counters" | "timeline" | "lifecycle";
export interface TimerInfo {
totalTime: number;
lastTime?: number;
count: number;
@@ -239,7 +239,7 @@ const voidMethodDecorator = () => {
// no op
};
export function profile(nameFnOrTarget?: string | Function | Object, fnOrKey?: Function | string | symbol, descriptor?: PropertyDescriptor): Function | MethodDecorator {
export function profile(nameFnOrTarget?: string | Function | Object, fnOrKey?: Function | string | symbol, descriptor?: PropertyDescriptor, attrs?: any): Function | MethodDecorator {
if (typeof nameFnOrTarget === "object" && (typeof fnOrKey === "string" || typeof fnOrKey === "symbol")) {
if (!profileFunctionFactory) {
return;

View File

@@ -1,6 +0,0 @@
{
"name": "profiling",
"main": "profiling",
"types": "profiling.d.ts",
"nativescript": {}
}