Which of these properties does TypeScript say are never initialized?
The project uses strict. Say every error TypeScript reports, and name the type the ^? line points at.
class Session { id: string; user: string | undefined; token!: string; expires: number; startedAt: number; constructor(expires: number) { this.expires = expires; this.start(); } start() { this.startedAt = 0; }} const token = new Session(60).token;// ^?Work it out first: the compiler shows every error and type.
The answer
Work out every error TypeScript reports and every type it shows, line by line. Then check.
Checking your sign-in…