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

Update NouisliderProps.tooltips typing to match noUiSlider docs #24

Merged
merged 2 commits into from Nov 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/src/components/Options.js
Expand Up @@ -31,7 +31,7 @@ const Options = () => (
DIRECTION - <b>Accepted values</b> : ltr, rtl
</li>
<li>
TOOLTIPS - <b>Accepted values</b> : false, true, formatter,
TOOLTIPS - <b>Accepted values</b> : false, true,
array[formatter or true or false, ...]
</li>
<li>
Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -41,7 +41,7 @@ export interface NouisliderProps {
start: number | number[] | string | string[];
step?: number;
style?: React.CSSProperties;
tooltips?: boolean | object[];
tooltips?: boolean | (boolean | Formatter)[];
}

export default class Nouislider extends React.Component<NouisliderProps> {}
2 changes: 2 additions & 0 deletions src/index.js
Expand Up @@ -206,7 +206,9 @@ Nouislider.propTypes = {
tooltips: PropTypes.oneOfType([
PropTypes.bool,
PropTypes.arrayOf(
PropTypes.bool,
PropTypes.shape({
from: PropTypes.func,
to: PropTypes.func
})
)
Expand Down