4 ms·You would need to declare that the function returned a sum type (string | int).by bwestergard 6y agoYou would need to declare that the function returned a sum type (string | int).