Skip to content

Instantly share code, notes, and snippets.

@lucacasonato
Created March 12, 2020 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucacasonato/be4dcd9a8b676ced0e72398d1caef1e6 to your computer and use it in GitHub Desktop.
Save lucacasonato/be4dcd9a8b676ced0e72398d1caef1e6 to your computer and use it in GitHub Desktop.
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);
import "./test2.ts";
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