Ryan Christian

Results 344 comments of Ryan Christian

@dungle-scrubs The CLI has two widget templates for exactly this purpose. [Widget](https://github.com/preactjs-templates/widget) and [TS-Widget](https://github.com/preactjs-templates/widget-typescript) I believe I do have PRs open for both that overhaul them a fair bit. Might...

> > Is there a way to use your unpublished PR #14 as a template via preact-cli? Yep! You can either download from source (not recommended) or use Preact-CLI to...

@dungle-scrubs Are you on [the slack](https://chat.preactjs.com/)? Probably best for discussions. If that's the JS/widget template I know there's a few things I'm not a fan of myself at the moment,...

Do you happen to have an example project where this can be demonstrated? From what I've read, the error message can be a bit hit or miss, sometimes requiring you...

Came across this by chance (always funny seeing myself quoted in the wild), but certainly feel free to ping if you ever need help pushing it forward. Just some forewarning,...

~~This is odd. Works perfectly fine in an application by fiddling with the installed module's types but here it breaks.~~ After reading https://github.com/preactjs/preact/issues/1180#issuecomment-643681851 I tried bumping the TS version as...

@leotaku ~~The first example should already be invalid, and I've not seen anything to the contrary.~~ But yes, this fixes the second case. Edit: It looks like #269 got a...

@leotaku Ah, yeah, now that you say that it rings a bell (sorry, this was made months ago). I don't believe it's possible to add arbitrary props to children only,...

Definitely. And if someone knows of a way to do that, I'd love to hear it. Would be a really nice improvement.

@mx51damon It's supported, you just have to use slightly different syntax is all. [preactjs-templates/typescript](https://github.com/preactjs-templates/typescript) shows how to use TS with this library. This PR just opens up an alternative syntax...