Fix IDE errors without changing internal data type

This commit is contained in:
nathan 2022-05-13 09:07:47 -06:00
parent de0c9aa3f4
commit b69c5e7cbf

View File

@ -52,7 +52,7 @@ li {
} }
private __select_options : SelectOption[]; private __select_options : SelectOption[];
private __value : string|string[]; private __value : string[];
constructor() constructor()
{ {
@ -99,7 +99,7 @@ li {
this.value = value; this.value = value;
} }
set value(new_value) set value(new_value : string | string[])
{ {
// Split anything that is still a CSV // Split anything that is still a CSV
if(typeof new_value == "string" && new_value.indexOf(",") > 0) if(typeof new_value == "string" && new_value.indexOf(",") > 0)