add object to array in typescript
I am just confused. I am trying to add new objects into an array in typescript but I got an error. my interface has a function on it. does anyone have an idea?
I am just confused. I am trying to add new objects into an array in typescript but I got an error. my interface has a function on it. does anyone have an idea?