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

fix: Searchbar TS #943

Merged
merged 2 commits into from
Mar 21, 2019
Merged

fix: Searchbar TS #943

merged 2 commits into from
Mar 21, 2019

Conversation

gawrysiak
Copy link
Collaborator

Missing TS typings for Searchbar methods

Screen Shot 2019-03-21 at 15 12 50

@callstack-bot
Copy link

callstack-bot commented Mar 21, 2019

Hey @gawrysiak, thank you for your pull request 🤗. The documentation from this branch can be viewed here. Please remember to update Typescript types if you changed API.

export declare class Searchbar extends React.Component<SearchbarProps> {}
export declare class Searchbar extends React.Component<SearchbarProps> {
isFocused: () => boolean;
clear: () => void;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is type for clear and focus different? Can't w unify it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, you're right, it was copied from TextInput, so sent a fix for TextInput as well now

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

Successfully merging this pull request may close these issues.

3 participants