-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
QueryList predicate type aliases #2090
Conversation
move itemRenderer file into select/commonPreview: documentation | landing | table |
@@ -20,6 +20,8 @@ export interface IListItemsProps<T> extends IProps { | |||
* (Supports filter algorithms that operate on the entire set, rather than individual items.) | |||
* | |||
* If defined with `itemPredicate`, this prop takes priority and the other will be ignored. | |||
* | |||
* An alias type `ItemListPredicate<T>` is provided to simplify the process of authoring predicates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then why not use the alias here in the typedef?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i want it to show the full signature in the docs, not the type alias name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but you should be able to click on it to see the full def. I don't like this compromise 🙅♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok fair
use alias types in interfacePreview: documentation | landing | table |
ItemPredicate<T>
andItemListPredicate<T>
(a laItemRenderer<T>
)