I can easily have an export default with multiple values:
class Car {...}
class Bus {...}
export default { Car, Bus }
I can also easily have an export default of a type
export default interface Airplane {...}
But I can't have a default export of multiple types
interface Airplane {...}
interface Motorcycle {...}
// 'Airplane' only refers to a type, but is being used as a value here. ts(2693)
export default { Airplane, Motorcycle }
Or of a mix of multiple types and values.
class Car {...}
interface Motorcycle {...}
// 'Airplane' only refers to a type, but is being used as a value here. ts(2693)
export default { Car, Airplane }
How can I achieve this?
prefer-default-exportlinting rule. Airbnb would disagree with you it seems: github.com/airbnb/javascript/issues/1365