-
Notifications
You must be signed in to change notification settings - Fork 794
Closed
Labels
Description
Expected behavior
No error when using typescript with configuration complerOptions.strict
and tslint:recommended
enable.
Actual behavior
ERROR in /home/wildan/Projects/Sensorfied/EDI/edi-ui/node_modules/interactjs/index.d.ts
164:5 'preventDefault', which lacks return-type annotation, implicitly has an 'any' return type.
162 | relatedTarget: DOMElement
163 | currentTarget: DOMElement
> 164 | preventDefault ()
| ^
165 | pageX: number
166 | pageY: number
167 | clientX: number
ERROR in /home/wildan/Projects/Sensorfied/EDI/edi-ui/node_modules/interactjs/index.d.ts
276:5 'test', which lacks return-type annotation, implicitly has an 'any' return type.
274 | styleCursor ( yesno: boolean ) : Interactable
275 | createSnapGrid ( opt: { x: number, y: number, range: number, offset: Position } ) : SnapFunction
> 276 | test ( x : SnapFunction )
| ^
277 | }
278 |
279 | interface InteractOptions {
ERROR in /home/wildan/Projects/Sensorfied/EDI/edi-ui/node_modules/interactjs/index.d.ts
291:13 Parameter 'any' implicitly has an 'any' type.
289 | pointerMoveTolerance ( tol?: number ) : number | InteractStatic
290 | // TODO
> 291 | isSet ( any ) : any
| ^
292 | off ( any ) : any
293 | debug ( any ) : any
294 | addDocument ( any ) : any
ERROR in /home/wildan/Projects/Sensorfied/EDI/edi-ui/node_modules/interactjs/index.d.ts
292:11 Parameter 'any' implicitly has an 'any' type.
290 | // TODO
291 | isSet ( any ) : any
> 292 | off ( any ) : any
| ^
293 | debug ( any ) : any
294 | addDocument ( any ) : any
295 | removeDocument ( any ) : any
ERROR in /home/wildan/Projects/Sensorfied/EDI/edi-ui/node_modules/interactjs/index.d.ts
293:13 Parameter 'any' implicitly has an 'any' type.
291 | isSet ( any ) : any
292 | off ( any ) : any
> 293 | debug ( any ) : any
| ^
294 | addDocument ( any ) : any
295 | removeDocument ( any ) : any
296 | }
ERROR in /home/wildan/Projects/Sensorfied/EDI/edi-ui/node_modules/interactjs/index.d.ts
294:19 Parameter 'any' implicitly has an 'any' type.
292 | off ( any ) : any
293 | debug ( any ) : any
> 294 | addDocument ( any ) : any
| ^
295 | removeDocument ( any ) : any
296 | }
297 | }
ERROR in /home/wildan/Projects/Sensorfied/EDI/edi-ui/node_modules/interactjs/index.d.ts
295:22 Parameter 'any' implicitly has an 'any' type.
293 | debug ( any ) : any
294 | addDocument ( any ) : any
> 295 | removeDocument ( any ) : any
| ^
296 | }
297 | }
298 |
Suggestion
For just temporary, I suggest any PR involving typescript should be accepted by default until there is a smoke test for supporting typescript.
System configuration
interact.js version: 1.3.3
Browser name and version: Google Chrome Version 64.0.3282.186 (Official Build) (64-bit)
Operating System: Ubuntu 16.04