I'm a TypeScript learner and I'm going through different sources and courses, but I couldn't find out how to make the compiler demand arguments for typed function.
The example is very simple: I have a function that needs two strings firstName and lastName and is supposed to return a concatenation of it:
type FuncType = (firstName: string, lastName: string) => string;
const getFullName: FuncType = () => "";
I am conscious of the fact that the function definition is not complete. But at this point (of writing the function definition) I would expect the compiler to warn me (or hint me) that I'm missing to specify two parameters (firstName and lastName) which are obviously required judging from the type FuncType.
That is not the case. What am I missing?