Skip to content

Commit 303c3ea

Browse files
called logAndEcho generic function and precised what type I pass in to get auto completion for example
1 parent 4af0b50 commit 303c3ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app.ts

+2
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,5 @@ function logAndEcho<T>(val: T) {
9999
console.log(val);
100100
return val;
101101
}
102+
103+
logAndEcho<string>('Hi there!').split(' ');

0 commit comments

Comments
 (0)