When using VSCode, the linter tslint may raise an issue when the following code is added with a specific type:
serverId: number = 10;
This will trigger the following message:
[tslint] Type number trivially inferred from a number literal, remove type annotation (no-inferrable-types)
If 'number' is removed as the type, the message disappears.
What is the reasoning behind it being considered bad practice to specify the type in this scenario?