updateLimit()function to return
void- thanks Sushanth R.!
This patch fixes several issues in Chapter 1:
Under the Install TypeScript section, the command to install TypeScript was
npm install --save-dev TypeScript, which is incorrect as
TypeScriptshould be all lowercase.
The latest stable version of TypeScript has been updated to 3.7.5
Added section Initialize
tsconfig.jsonto ensure that a
tsconfig.jsonfile is created to avoid an error with using the
Date()constructor in the
updateDate()method of the
Added return type of
updateLabel()method of the
Fixed the wrong file name for
Fixed a bug with the
truncate()function where it was always adding a suffix even to strings that were shorter than the given limit.
Fixed the file path to
Fixed the import path in the code snippets that referenced the
utilsfolder (previously it was going up one extra folder)
Fixed a bug where we were using the
Categoryenum in all caps (i.e
Category.FOOD) as opposed to camelcase (i.e
Fixed function signature of the
getCategory()method in the
Budgetclass so that it does not take any parameters and returns a
Fixed typo where
getIsOverLimit()was misspelled as
Fixed broken path to
app.tswhich was preventing the file from being rendered on the page.