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
@@ -35,7 +35,7 @@ type AuthMethodReadResult struct {
|
||||
response *api.Response
|
||||
}
|
||||
|
||||
func (n AuthMethodReadResult) GetItem() interface{} {
|
||||
func (n AuthMethodReadResult) GetItem() *AuthMethod {
|
||||
return n.Item
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ type AuthMethodListResult struct {
|
||||
response *api.Response
|
||||
}
|
||||
|
||||
func (n AuthMethodListResult) GetItems() interface{} {
|
||||
func (n AuthMethodListResult) GetItems() []*AuthMethod {
|
||||
return n.Items
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user