File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ import type {
3333} from "./transport/Transport.js" ;
3434import { WebSocketTransportFactory } from "./transport/WebSocketTransportFactory.ts" ;
3535
36+ interface TypeDefDict {
37+ [ key : string ] : string | string [ ] | TypeDefDict | TypeDefDict [ ] ;
38+ }
39+
3640/**
3741 * Manages connection to the rosbridge server and all interactions with ROS.
3842 *
@@ -641,7 +645,7 @@ export default class Ros extends EventEmitter<
641645 hints : rosapi . TypeDef [ ] ,
642646 ) => {
643647 // calls itself recursively to resolve type definition using hints.
644- const typeDefDict = { } ;
648+ const typeDefDict : TypeDefDict = { } ;
645649 for ( let i = 0 ; i < theType . fieldnames . length ; i ++ ) {
646650 const arrayLen = theType . fieldarraylen [ i ] ;
647651 const fieldName = theType . fieldnames [ i ] ;
Original file line number Diff line number Diff line change 5353
5454 /* Rules to be enabled */
5555 "exactOptionalPropertyTypes" : false /* Differentiate between undefined and not present when type checking */ ,
56- "noImplicitAny" : false /* Enable error reporting for expressions and declarations with an implied 'any' type. */ ,
56+ "noImplicitAny" : true /* Enable error reporting for expressions and declarations with an implied 'any' type. */ ,
5757
5858 "types" : [" @types/node" ]
5959 },
You can’t perform that action at this time.
0 commit comments