[Solved] How to push a string in typescript file? [closed]
The Channel class is only being used for type checking as far as I can tell. Channel.ts export class Channel { name: string; } Items.ts import { Channel } from ‘./Channel’; const items: Channel[] = []; // initialize to empty array const test: string[] = [“one”, “two”, “three”]; // because ‘test’ is an array of … Read more