Lint types
This commit is contained in:
parent
f91613f112
commit
137b94703a
1 changed files with 12 additions and 12 deletions
|
@ -16,22 +16,22 @@ limitations under the License.
|
|||
|
||||
import * as React from 'react';
|
||||
|
||||
type IProps = {
|
||||
// A callback for the selected value
|
||||
onSelectionChange: (value: number) => void;
|
||||
interface IProps {
|
||||
// A callback for the selected value
|
||||
onSelectionChange: (value: number) => void;
|
||||
|
||||
// The current value of the slider
|
||||
value: number;
|
||||
// The current value of the slider
|
||||
value: number;
|
||||
|
||||
// The range and values of the slider
|
||||
// Currently only supports an ascending, constant interval range
|
||||
values: number[];
|
||||
// The range and values of the slider
|
||||
// Currently only supports an ascending, constant interval range
|
||||
values: number[];
|
||||
|
||||
// A function for formatting the the values
|
||||
displayFunc: (value: number) => string;
|
||||
// A function for formatting the the values
|
||||
displayFunc: (value: number) => string;
|
||||
|
||||
// Whether the slider is disabled
|
||||
disabled: boolean;
|
||||
// Whether the slider is disabled
|
||||
disabled: boolean;
|
||||
}
|
||||
|
||||
export default class Slider extends React.Component<IProps> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue