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';
|
import * as React from 'react';
|
||||||
|
|
||||||
type IProps = {
|
interface IProps {
|
||||||
// A callback for the selected value
|
// A callback for the selected value
|
||||||
onSelectionChange: (value: number) => void;
|
onSelectionChange: (value: number) => void;
|
||||||
|
|
||||||
// The current value of the slider
|
// The current value of the slider
|
||||||
value: number;
|
value: number;
|
||||||
|
|
||||||
// The range and values of the slider
|
// The range and values of the slider
|
||||||
// Currently only supports an ascending, constant interval range
|
// Currently only supports an ascending, constant interval range
|
||||||
values: number[];
|
values: number[];
|
||||||
|
|
||||||
// A function for formatting the the values
|
// A function for formatting the the values
|
||||||
displayFunc: (value: number) => string;
|
displayFunc: (value: number) => string;
|
||||||
|
|
||||||
// Whether the slider is disabled
|
// Whether the slider is disabled
|
||||||
disabled: boolean;
|
disabled: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Slider extends React.Component<IProps> {
|
export default class Slider extends React.Component<IProps> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue