What would you name a variable that has type Promise<Todo> ?
I though we were past naming variables by their types? That's what their types are for.
So try naming it about what is it promising to have?
What would you name it?
I have this convention:
<group-name><object-name><object-type>
ToDoPromise
I though we were past naming variables by their types? That's what their types are for.
So try naming it about what is it promising to have?
What would you name it?
I have this convention:
So in your case: if it's the only todo.