nuka-carousel icon indicating copy to clipboard operation
nuka-carousel copied to clipboard

Decorator props validation

Open benbayard opened this issue 10 years ago • 2 comments

Hey there! Does any one have a list of props passed down to decorators? I can PR in all the validations, but I need it for my typescript typings of the carousel.

benbayard avatar Aug 16 '16 20:08 benbayard

currentSlide: React.PropTypes.number,
slideCount: React.PropTypes.number,
frameWidth: slideWidth: React.PropTypes.oneOfType([
  React.PropTypes.string,
  React.PropTypes.number
]),
slideWidth: React.PropTypes.oneOfType([
  React.PropTypes.string,
  React.PropTypes.number
]),
slidesToScroll: React.PropTypes.number,
cellSpacing: React.PropTypes.number,
slidesToShow: React.PropTypes.number,
wrapAround: React.PropTypes.bool,
nextSlide: React.PropTypes.func,
previousSlide: React.PropTypes.func,
goToSlide: React.PropTypes.func,

mdaxtman avatar Nov 23 '16 20:11 mdaxtman

@benbayard are you going to submit a PR for your typings?

thomhos avatar Oct 31 '17 09:10 thomhos