In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning. Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Interfaces begin with the keyword interface."
A block of code is set as follows:
let x: [string, number];
x = ["age", 40]; // ok
x = [40, "age"] ; // error
Any command-line input or output is written as follows:
npm install -g typescript
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "File upload also provides a simpler UI with just one button Choose."
Warnings or important notes appear like this.
Tips and tricks appear like this.