Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

typescript is there a way to remove the array from an property?

$
0
0

I have this model:

export interface SizeAndColors {   size: string;   color: string;}[];

and then I have another model and I need the sizeAndColor but without a array.

export interface Cart {  options: SizeAndColors}

How can I say at options that I want to have this interface without the array?is that possible ?


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>