Use typescript. It’s better. (cit)
.NET in pillole
Italian - September 11, 2023 05:00 - 9 minutes - 21.5 MBTechnology Homepage Download Apple Podcasts Google Podcasts Overcast Castro Pocket Casts RSS feed
Previous Episode: Alcune novità sulle Azure Functions
Next Episode: GitHub Copilot, cosa ne penso dopo mesi di utilizzo
Da un tweet di Scott Hanselman (https://twitter.com/shanselman/status/1699655960875434140 ) ecco che ritorno a parlare di Typescript, dando alcune indicazioni per poterlo utilizzare anche in progetti Blazor.
https://www.npmjs.com/package/@types/blazor__javascript-interophttps://www.nuget.org/packages/Microsoft.TypeScript.MSBuild/
tsconfig.json:
{
"compilerOptions": {
"module": "es6",
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"sourceMap": true,
"moduleResolution": "node",
"target": "es5"
},
"exclude": [
"node_modules",
"wwwroot"
]
}