Wrap TypeScript interface in Observable -
i have interface like:
interface mystate { userstate: userstate; notificationsstate: notificationsstate; datastate: datastate; }
and based on i'd generate interface like:
interface rxmystate { userstate: observable<userstate>; notificationsstate: observable<notificationsstate>; datastate: observable<datastate>; }
but don't want create , update second interface hand every time add/remove in storestate
interface. there way can tell typescript wrap items in storestate interface observable<state>
?
Comments
Post a Comment