Skip to content

Conversation

@garyb
Copy link
Member

@garyb garyb commented Apr 29, 2022

Resolves #785

I think #749 is worth looking at too perhaps (mostly needs changing in dom-indexed). As much as I dislike the idea of stringly typing, the context-based behaviour of the values that can be provided here suggests that maybe a more precise modelling isn't much use anyway. I don't know... it might still be nice to enumerate the many various options in a type anyway, since at least then it prevents typos / allows discovery by editor autocomplete, etc. What do you think @thomashoneyman?

@thomashoneyman
Copy link
Member

thomashoneyman commented Apr 29, 2022

I think it's OK to move it to be a String, personally, at least so that adding options isn't a breaking change. But I'd be happy with a sum type too 😆

@thomashoneyman thomashoneyman merged commit dae5bc3 into purescript-halogen:purs-0.15 Apr 29, 2022
@thomashoneyman
Copy link
Member

I've added this as a sum type: purescript-halogen/purescript-dom-indexed#29

@garyb garyb deleted the ps-0.15-extras branch May 1, 2022 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants