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
@@ -33,7 +33,7 @@ type CredentialReadResult struct {
|
||||
response *api.Response
|
||||
}
|
||||
|
||||
func (n CredentialReadResult) GetItem() interface{} {
|
||||
func (n CredentialReadResult) GetItem() *Credential {
|
||||
return n.Item
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ type CredentialListResult struct {
|
||||
response *api.Response
|
||||
}
|
||||
|
||||
func (n CredentialListResult) GetItems() interface{} {
|
||||
func (n CredentialListResult) GetItems() []*Credential {
|
||||
return n.Items
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user