no-inferrable-types
let notInicialized: number;
let letMultipleValues: number | string = 'some string';
const mutableValue: { a: number | string } = { a: 666 };
class UserService {
getAllUsers() {
return fetch('/users');
}
}
interface User {
id: number;
name: string;
age?: number;
}
class UserService {
getUsers(): Promise<User> {
return fetch('/user');
}
}