improved typesafety
This commit is contained in:
@@ -14,8 +14,8 @@ type Props = {
|
||||
onChange: any;
|
||||
defaultValue:
|
||||
| {
|
||||
value: number;
|
||||
label: string;
|
||||
value?: number;
|
||||
}
|
||||
| undefined;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user