@@ -96,7 +96,7 @@ function convertStructToFixedSizeList(
9696
9797type AssignAccessorProps = {
9898 /** The object on which to assign the resolved accesor */
99- props : object ;
99+ props : Record < string , any > ;
100100 /** The name of the prop to set */
101101 propName : string ;
102102 /** The user-supplied input to the layer. Must either be a scalar value or a reference to a column in the table. */
@@ -136,7 +136,6 @@ export function assignAccessor(args: AssignAccessorProps) {
136136 ) ;
137137 }
138138
139- // @ts -expect-error Property 'data' does not exist on type 'object'.
140139 props . data . attributes [ propName ] = {
141140 value : values ,
142141 size : columnData . type . listSize ,
@@ -152,7 +151,6 @@ export function assignAccessor(args: AssignAccessorProps) {
152151 values = expandArrayToCoords ( values , 1 , geomCoordOffsets ) ;
153152 }
154153
155- // @ts -expect-error Property 'data' does not exist on type 'object'.
156154 props . data . attributes [ propName ] = {
157155 value : values ,
158156 size : 1 ,
@@ -316,8 +314,8 @@ export function extractAccessorsFromProps(
316314 props : Record < string , any > ,
317315 excludeKeys : string [ ] ,
318316) : [ Record < string , any > , Record < string , any > ] {
319- const accessors = { } ;
320- const otherProps = { } ;
317+ const accessors : Record < string , any > = { } ;
318+ const otherProps : Record < string , any > = { } ;
321319 for ( const [ key , value ] of Object . entries ( props ) ) {
322320 if ( excludeKeys . includes ( key ) ) {
323321 continue ;
0 commit comments