File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ type RangeOptions = {
1616
1717type  PipsType  =  - 1  |  0  |  1  |  2 ; 
1818
19- type  Pips  =  { 
19+ export   type  Pips  =  { 
2020    mode : 'range'  |  'steps'  |  'positions'  |  'count'  |  'values' ; 
2121    values : number  |  number [ ] ; 
2222    filter ?: ( value : number ,  type : PipsType )  =>  PipsType ; 
Original file line number Diff line number Diff line change 11import  {  Options  }  from  'nouislider' ; 
22
3+ import  {  Pips  }  from  '../../Component' ; 
4+ 
35import  {  config  }  from  './config' ; 
46
57type  CreatePipsConfigParams  =  { 
@@ -36,7 +38,7 @@ type CreatePipsConfigParams = {
3638     * Отображение подписей с values 
3739     * https://refreshless.com/nouislider/pips/ 
3840     */ 
39-     pips ?: any ; 
41+     pips ?: Pips ; 
4042
4143    /** Массив значений для произвольного размещения точек */ 
4244    customDots ?: number [ ] ; 
@@ -53,7 +55,7 @@ export const createPipsConfig = ({
5355    customDots =  [ ] , 
5456} : CreatePipsConfigParams ) : Options [ 'pips' ]  =>  { 
5557    if  ( pips  &&  ! customDots ?. length )  { 
56-         return  pips ; 
58+         return  pips   as   Options [ 'pips' ] ; 
5759    } 
5860
5961    return  config [ dotsSlider ] ?.( { 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments