zspecza / common-tags

🔖 Useful template literal tags for dealing with strings in ES2015+
Other
1.99k stars 60 forks source link

Rewrite to TypeScript #204

Open fatfisz opened 4 years ago

fatfisz commented 4 years ago

We should retain all different builds, namely:

Also package.json should point at the TS declaration file.

Most probably Babel will be removed.

Hexagon commented 1 year ago

@fatfisz I'm interested in making this work on deno+bun natively, and notice it's been a while since this repo were updated. Is proper esm + native ts + cleanup + publish to deno.land/x going to happen? Would you accept a PR, or should i fork the project and re-publish?

Ref: #201

Hexagon commented 1 year ago

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!

rassie commented 1 year ago

@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.

Hexagon commented 1 year ago

@rassie Issues-section added now, and no, that typing does not make sense. Will have to have a look at that 👍