@willgmbr
no-inferrable-types
class UserService { getAllUsers() { return fetch('/users'); } }
interface User { id: number; name: string; age?: number; } class UserService { getUsers(): Promise<User> { return fetch('/user'); } }