File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ declare class TraceID {
33 timestamp : string ;
44 id : string ;
55
6- constructor ( ) ;
6+ constructor ( tsHex ?: string , numberhex ?: string ) ;
77
88 static Invalid ( ) : TraceID ;
99
Original file line number Diff line number Diff line change @@ -41,11 +41,13 @@ expectType<void>(AWSXRay.setDaemonAddress('192.168.0.23:8080'));
4141
4242const traceId = '1-57fbe041-2c7ad569f5d6ff149137be86' ;
4343const traceId2 = new TraceID ( ) ;
44+ const traceId3 = new TraceID ( '0' , '0' ) ;
4445const segment = new AWSXRay . Segment ( 'test' , traceId ) ;
4546
4647expectType < TraceID > ( TraceID . FromString ( traceId ) ) ;
4748expectType < TraceID > ( TraceID . Invalid ( ) ) ;
4849expectType < string > ( traceId2 . toString ( ) ) ;
50+ expectType < string > ( traceId3 . toString ( ) ) ;
4951
5052expectType < string > ( AWSXRay . captureFunc ( 'tracedFcn' , ( ) => 'OK' , segment ) ) ;
5153expectType < void > ( AWSXRay . captureFunc ( 'tracedFcn' , ( ) => {
You can’t perform that action at this time.
0 commit comments