File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -61,15 +61,15 @@ export default class Creator extends CommandBase {
61
61
}
62
62
} ;
63
63
64
- // as any required below because server uses swagger object as interface{} in Go to perform type switching
64
+ // as Record<string, any> required below because server uses swagger object as interface{} in Go to perform type switching
65
65
// actual types are []number and [][]number but unions don't work in go-swagger
66
66
payload = ( ) : WeaviateObject => ( {
67
67
tenant : this . tenant ,
68
68
vector : this . vector ,
69
69
properties : this . properties ,
70
70
class : this . className ,
71
71
id : this . id ,
72
- vectors : this . vectors as any ,
72
+ vectors : this . vectors as Record < string , any > ,
73
73
} ) ;
74
74
75
75
validate = ( ) => {
Original file line number Diff line number Diff line change @@ -67,15 +67,15 @@ export default class Updater extends CommandBase {
67
67
return this ;
68
68
} ;
69
69
70
- // as any required below because server uses swagger object as interface{} in Go to perform type switching
70
+ // as Record<string, any> required below because server uses swagger object as interface{} in Go to perform type switching
71
71
// actual types are []number and [][]number but unions don't work in go-swagger
72
72
payload = ( ) : WeaviateObject => ( {
73
73
tenant : this . tenant ,
74
74
properties : this . properties ,
75
75
class : this . className ,
76
76
id : this . id ,
77
77
vector : this . vector ,
78
- vectors : this . vectors as any ,
78
+ vectors : this . vectors as Record < string , any > ,
79
79
} ) ;
80
80
81
81
validate = ( ) => {
You can’t perform that action at this time.
0 commit comments