Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Child shouldn't allow null or undefined #50

Open
thequailman opened this issue Sep 13, 2022 · 0 comments
Open

Child shouldn't allow null or undefined #50

thequailman opened this issue Sep 13, 2022 · 0 comments

Comments

@thequailman
Copy link

https://github.com/MithrilJS/mithril.d.ts/blob/master/index.d.ts#L191

In my opinion, null | undefined should be removed from this type. It should be more strict, and users should have to use an empty array or placeholder vnode in order to avoid Mithril having to check if something is null or undefined.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant