-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
refactor: ListItem
construction
#3370
refactor: ListItem
construction
#3370
Conversation
|
I'm not seeing that change in the diffs... It looks public still to me. Having said that, the Tasks constructor is also public, and that works fine. |
Ah, right. Fixed in the description |
Thank you! |
Types of changes
Done by pairing with @claremacrae
Internal changes:
refactor
- non-breaking change which only improves the design or structure of existing code, and making no changes to its external behaviour)test
- additions and improvements to unit tests and the smoke tests)Description
ListItem.fromListItemLine()
method, similar toTask.fromLine()
ListItem.fromListItemLine()
instead of the constructorListItem
constructor similar toTask
Motivation and Context
ListItem
shape and patters similar toTask
This is in preparation for allowing
ListItem.fromListItemLine()
to returnnull
if given a non-list-item line.How has this been tested?
Checklist
yarn run lint
.Terms