Rewrite to TypeScript
fatfisz opened this issue · comments
fatfisz commented
We should retain all different builds, namely:
- CJS as the default entrypoint
- ES (set up TypeScript to output something supported by Node 10)
- minified UMD (for unpkg.js)
Also package.json should point at the TS declaration file.
Most probably Babel will be removed.
Hexagon commented
Hexagon commented
I've started working on this, forked and published https://github.com/hexagon/proper-tags to npm and deno.land/x/proper_tags
Currently WIP but should be working!
Nikolai Prokoschenko commented
@Hexagon since your forked repository does not have issues I'd like to ask here: does the typing for inlineArrayTransformer
make sense to you? Typescript does not want to compile because conjunction
, separator
and serial
do not exist on strings and as far as I can see, a string
type does not make a lot of sense there.