Changelog
Revision 3#
Fixes the
updateLimit()
function to returnvoid
- thanks Sushanth R.!
Revision 2#
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 asTypeScript
should be all lowercase.The latest stable version of TypeScript has been updated to 3.7.5
Added section Initialize
tsconfig.json
to ensure that atsconfig.json
file is created to avoid an error with using theDate()
constructor in theupdateDate()
method of theExpense
class.Added return type of
void
to theupdateLabel()
method of theExpense
classFixed the wrong file name for
getUniqueId.ts
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
Expense.ts
Fixed the import path in the code snippets that referenced the
utils
folder (previously it was going up one extra folder)Fixed a bug where we were using the
Category
enum in all caps (i.eCategory.FOOD
) as opposed to camelcase (i.eCategory.Food
).Fixed function signature of the
getCategory()
method in theBudget
class so that it does not take any parameters and returns aCategory
type.Fixed typo where
getIsOverLimit()
was misspelled asgetIsOverBudget()
Fixed broken path to
app.ts
which was preventing the file from being rendered on the page.