s = 'STRING'
ss = "something {s} something"
ss.replace(/{(.+)}/, function() { return window[arguments[1]] })
// "something STRING something"function map(items: Array<Item>) {
...
items.push({name: "Vasya"});
...
}
map(list)Items, локально все ок, только мы его пушим в массив типа Array<Users>, у которого более строгий тип. Поэтому флоу ругается.function map<T: {name: string}>(items: Array<T>) { store.dispatch(someAction(data))store.subscribe(() => {
console.log(...)
})