3 ms·
lit-html is written in TypeScript, so has great typings. There are TypeScript plugins to statically analyze the templates, like lit-analyzer and the lit-plugin
by spankalee 7y ago
lit-html is written in TypeScript, so has great typings.
There are TypeScript plugins to statically analyze the templates, like lit-analyzer and the lit-plugin VS Code extension.
LitElement provides TypeScript decorators for declaring reactive properties and more.
- xellisx 7y agoWhile it is writen in typescript, it's still aimed towards JS first.
- spankalee 7y agoI'm not exactly sure what you mean then. TypeScript doesn't in general change its emit based on types, so its runtime feature set is exactly the same as JavaScript. lit-html has a TypeScript compiler plug-in which provides template type=-checking, and LitElement provides decorators, like I said. How would something be more aimed at TypeScript, and not JavaScript?
- xellisx 7y agoThe project front page talks all about JavaScript, and no mention of TypeScript. So to me it's not aimed primarily toward developing against it in TS.
- Can_Not 7y ago"Good Typescript Support" and "Technically Written in Typescript" are very different things.
- spankalee 7y agoDo you have specifics?