fable-compiler / Fable.Lit

Write Fable Elmish apps with Lit
https://fable.io/Fable.Lit/
MIT License
93 stars 13 forks source link

add some of the missing directives #3

Closed AngelMunoz closed 3 years ago

alfonsogarciacaro commented 3 years ago

As discussed, I've separated the "pure" lit-html with some wrappers that I've also tried to make more F#ish in the names and the position of the arguments. Please have a look and let me know what you think: https://github.com/alfonsogarciacaro/Elmish.Lit/blob/d8f31ac646ffa3b5d2a1f8efd2e693169543ed8f/src/Fable.Lit/Lit.fs#L58-L77

AngelMunoz commented 3 years ago

I think the only missing one would be this signature

static member repeat<'T> (items: 'T seq, template: 'T -> int -> TemplateResult) = jsNative

I think you added the "large" overload, everything else looks good!

AngelMunoz commented 3 years ago

Also good work with the F#'ish names they really looks nice!