File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+
16
17
export interface TraceState {
17
18
/**
18
- * Adds or updates the TraceState that has the given `key` if it is
19
- * present. The new State will always be added in the front of the
20
- * list of states.
19
+ * Create a new TraceState which inherits from this TraceState and has the
20
+ * given key set.
21
+ * The new entry will always be added in the front of the list of states.
21
22
*
22
23
* @param key key of the TraceState entry.
23
24
* @param value value of the TraceState entry.
24
25
*/
25
- set ( key : string , value : string ) : void ;
26
+ set ( key : string , value : string ) : TraceState ;
26
27
27
28
/**
28
- * Removes the TraceState Entry that has the given `key` if it is present.
29
+ * Return a new TraceState which inherits from this TraceState but does not
30
+ * contain the given key.
29
31
*
30
- * @param key the key for the TraceState Entry to be removed.
32
+ * @param key the key for the TraceState entry to be removed.
31
33
*/
32
- unset ( key : string ) : void ;
34
+ unset ( key : string ) : TraceState ;
33
35
34
36
/**
35
37
* Returns the value to which the specified key is mapped, or `undefined` if
You can’t perform that action at this time.
0 commit comments