refactor(api module): enforce typed definitions (#2238)
This commit is contained in:
1 parent
d6c1402223
commit
c2bfcc0664
79 files changed
+906
-551
No files matched your search
@@ -46,7 +46,7 @@ type TargetReadResult struct {
|
||||
response *api.Response
|
||||
}
|
||||
|
||||
func (n TargetReadResult) GetItem() interface{} {
|
||||
func (n TargetReadResult) GetItem() *Target {
|
||||
return n.Item
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ type TargetListResult struct {
|
||||
response *api.Response
|
||||
}
|
||||
|
||||
func (n TargetListResult) GetItems() interface{} {
|
||||
func (n TargetListResult) GetItems() []*Target {
|
||||
return n.Items
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user