Skip to content

Commit d14dbcb

Browse files
committed
fixup
1 parent 95997b4 commit d14dbcb

File tree

1 file changed

+2
-10
lines changed
  • packages/@aws-cdk/tmp-toolkit-helpers/src/api/io/private

1 file changed

+2
-10
lines changed

packages/@aws-cdk/tmp-toolkit-helpers/src/api/io/private/span.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ type ForceEmpty<T> = T extends EmptyObject ? EmptyObject : T
4545
*/
4646
type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
4747

48-
// /**
49-
// * A minimal interface that provides a single function to end the span
50-
// */
51-
// interface CanEndSpan<E extends SpanEnd> {
52-
// end(payload: VoidWhenEmpty<Optional<E, keyof SpanEnd>>): Promise<Duration>;
53-
// end(message: string, payload: ForceEmpty<Optional<E, keyof SpanEnd>>): Promise<Duration>;
54-
// }
55-
5648
/**
5749
* Ending the span returns the observed duration
5850
*/
@@ -109,8 +101,8 @@ export class SpanMaker<S extends object, E extends SpanEnd> {
109101
}
110102

111103
/**
112-
* Starts the span and notifies the IoHost.
113-
* @returns an object that can end the span
104+
* Starts the span and initially notifies the IoHost
105+
* @returns a message span
114106
*/
115107
public async begin(payload: VoidWhenEmpty<S>): Promise<IMessageSpan<E>>;
116108
public async begin(message: string, payload: S): Promise<IMessageSpan<E>>;

0 commit comments

Comments
 (0)