improved typesafety

This commit is contained in:
Daniel
2023-05-27 19:59:39 +03:30
parent a0a7ccc952
commit 36778810c5
11 changed files with 87 additions and 89 deletions
@@ -14,8 +14,8 @@ type Props = {
onChange: any;
defaultValue:
| {
value: number;
label: string;
value?: number;
}
| undefined;
};
+1 -1
View File
@@ -4,6 +4,6 @@
// You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
export interface Options {
value: string | number;
label: string;
value?: string | number;
}