Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(typescript) circular class node type .next and .prev possibly null #17

Open
JamesYFC opened this issue Aug 23, 2019 · 0 comments
Open

Comments

@JamesYFC
Copy link

Is your feature request related to a problem? Please describe.
In the typescript definitions, the node properties .next and .prev are of type Instance<T> | null, even for circular doubly linked list nodes (which uses the same type), meaning that using it in strict mode involves a lot of null checks that this type should not need.

Describe the solution you'd like
The node properties in this case should only be of type Instance<T>.

Additional context
n/a

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

No branches or pull requests

1 participant