The sort argument for adding a top-level item to a list, List.add(), is annotated to accept both int and NewListItemPlacementValue values.
However, the sort argument for adding a sub-item to an existing item, ListItem.add(), is only annotated to accept int, which is making my type checker question my authority. It must be silenced.
This PR corrects that by adding the NewListItemPlacementValue option to the annotation.
The
sort
argument for adding a top-level item to a list,List.add()
, is annotated to accept bothint
andNewListItemPlacementValue
values.However, the
sort
argument for adding a sub-item to an existing item,ListItem.add()
, is only annotated to acceptint
, which is making my type checker question my authority. It must be silenced.This PR corrects that by adding the
NewListItemPlacementValue
option to the annotation.🚀🚀🚀🚀🚀🚀🚀