(value: DiffTypeAndExtra)
| 41 | }; |
| 42 | |
| 43 | function encodeSelectizeValue(value: DiffTypeAndExtra): string { |
| 44 | if (value.extraoption) { |
| 45 | return value.difftype.toString() + `:${value.extraoption}`; |
| 46 | } |
| 47 | return value.difftype.toString(); |
| 48 | } |
| 49 | |
| 50 | function decodeSelectizeValue(value: string): DiffTypeAndExtra { |
| 51 | const opts = value.split(':'); |
no test coverage detected