Closed aamirafridi closed 3 years ago
In your types file:
declare function creditCardType(cardNumber: string): Array<CreditCardType>;
But it can return undefined e.g. if you provide a card number 000...
it does return empty array. my bad
General information
Wrong return types for default exported function
In your types file:
But it can return undefined e.g. if you provide a card number 000...