function logging(message : number) { console.log(message);}logging(“Hello”);
function logging(message : number) { console.log(message);}logging(“Hello”);
This should throw an error when trying to run it, but apparently it does not. But why? We tried using the tsc compiler from Node and it clearly throws an error, saying that the type string is not assignable to type number.
Is there something I need to change in the config for Deno to get the same error result?
Thanks ~Mqx
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
D
Deno
Chat about Deno, a modern runtime for JavaScript and TypeScript.