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

Proper way of Extending TypeScript interface properties

$
0
0
export interface IDDMenuItem {  [key: string]: object extends { disabled:boolean,label:string, type:string}}

This way not seems to be legit -

Getting these errors:

Return type of index signature from exported interface has or is using private name ''.Return type of index signature from exported interface has or is using private name ''.'?' expected.

Looking for the proper way of extending properties.


Viewing all articles
Browse latest Browse all 6287

Trending Articles