We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ec67d2 commit 857dfc3Copy full SHA for 857dfc3
src/TypeScriptSample.Web/App/app.ts
@@ -8,8 +8,7 @@ function getPeople() {
8
$.ajax({
9
url: "api/person",
10
method: 'get',
11
- // response could be anything here
12
- }).done((response) => {
+ }).done((response: Array<TypeScriptSample.Models.Person>) => {
13
var details = '<ul>';
14
for (var i = 0; i < response.length; i++) {
15
details += "<li>" + response[i].Name + "</li>"; //If 'Name' gets changed on the server, this code will fail
0 commit comments