File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -173,17 +173,16 @@ returns a random element from an array? One thing about types is that
173
173
they require their own complexity to describe some code. In this case,
174
174
you'd need a _ ((type variable))_ _ T_ , which can stand in for any type,
175
175
at which point you can give ` randomPick ` a type like ` ([T]) → T `
176
- (function from array of _ T_s to a _ T _ ).
176
+ (function from array of * T * s to a * T * ).
177
177
178
- {{index "type checking"}}
178
+ {{index "type checking", TypeScript }}
179
179
180
180
When the types of a program are known, it is possible for the computer
181
181
to _ check_ them for you, pointing out mistakes before the program is
182
182
run. There are several JavaScript dialects that add types to the
183
183
language and check them. The most popular one is called
184
- [ ((TypeScript))] ( https://www.typescriptlang.org/ ) . If you are
185
- interested in adding more rigor to your programs, I recommend you give
186
- it a try.
184
+ [ TypeScript] ( https://www.typescriptlang.org/ ) . If you are interested
185
+ in adding more rigor to your programs, I recommend you give it a try.
187
186
188
187
In this book, we'll continue using raw, dangerous, untyped JavaScript
189
188
code.
You can’t perform that action at this time.
0 commit comments