This repository was archived by the owner on Oct 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
packages/opencensus-core/src Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1515 */
1616
1717import { StatsEventListener } from '../exporters/types' ;
18- import * as cls from '../internal/cls' ;
1918import { Metric } from '../metrics/export/types' ;
2019import { TagMap } from '../tags/tag-map' ;
2120import { TagKey , TagValue } from '../tags/types' ;
2221
22+ /** Default type for functions */
23+ // tslint:disable:no-any
24+ type Func < T > = ( ...args : any [ ] ) => T ;
25+
2326/** Main interface for stats. */
2427export interface Stats {
2528 /**
@@ -107,7 +110,7 @@ export interface Stats {
107110 * @param fn Callback function.
108111 * @returns The callback return.
109112 */
110- withTagContext < T > ( tags : TagMap , fn : cls . Func < T > ) : T ;
113+ withTagContext < T > ( tags : TagMap , fn : Func < T > ) : T ;
111114
112115 /** Gets the current tag context. */
113116 getCurrentTagContext ( ) : TagMap ;
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export type PluginNames = {
5555} ;
5656
5757export type PluginInternalFilesVersion = {
58- [ pluginName : string ] : string
58+ [ pluginName : string ] : string ;
5959} ;
6060
6161/**
You can’t perform that action at this time.
0 commit comments