(def?: T)
| 127 | } |
| 128 | |
| 129 | getString(def?: T) { |
| 130 | if (typeof def === 'undefined' || this.hasValue()) { |
| 131 | return typeof this.value === 'undefined' |
| 132 | ? '' |
| 133 | : String(this.value) |
| 134 | } |
| 135 | |
| 136 | return String(def) |
| 137 | } |
| 138 | |
| 139 | getColor(def?: T) { |
| 140 | let color = this.getString(def) |
no test coverage detected