(key: PropertyName.Custom, value: string | number | boolean)
| 132 | } |
| 133 | |
| 134 | public setCustomProperty(key: PropertyName.Custom, value: string | number | boolean): void { |
| 135 | if (this.isReservedPropertyName(key)) { |
| 136 | throw new Error("Tried to overwrite key '" + PropertyName.Custom[key] + "' with value of " + JSON.stringify(value)); |
| 137 | } |
| 138 | |
| 139 | if (!this._properties) { |
| 140 | this._properties = {}; |
| 141 | } |
| 142 | this._properties[PropertyName.Custom[key]] = value; |
| 143 | } |
| 144 | |
| 145 | /** |
| 146 | * Calling this multiple times in a row will result in restart of the timer |
no test coverage detected