Created
March 12, 2020 16:38
-
-
Save lucacasonato/be4dcd9a8b676ced0e72398d1caef1e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compile file:///home/lucacasonato/Downloads/test.ts | |
error TS2345: Argument of type '1' is not assignable to parameter of type 'string'. | |
► file:///home/lucacasonato/Downloads/test2.ts:5:7 | |
5 hello(1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "./test2.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hello(msg: string) { | |
console.log(msg); | |
} | |
hello(1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment