tweak(api): make sure data for the constructor is typed instead of any
This commit is contained in:
parent
e897a33c41
commit
3e435c252c
@ -18,7 +18,7 @@ export default class Group {
|
||||
created?: string;
|
||||
members?: string[];
|
||||
|
||||
constructor(data: any) {
|
||||
constructor(data: Group) {
|
||||
this.id = data.id;
|
||||
this.uuid = data.uuid;
|
||||
this.name = data.name;
|
||||
|
@ -30,7 +30,7 @@ export default class Member {
|
||||
proxy_tags?: Array<proxytag>;
|
||||
privacy?: MemberPrivacy
|
||||
|
||||
constructor(data: any) {
|
||||
constructor(data: Member) {
|
||||
this.id = data.id;
|
||||
this.uuid = data.uuid;
|
||||
this.name = data.name;
|
||||
|
@ -19,7 +19,7 @@ export default class Sys {
|
||||
privacy?: SystemPrivacy;
|
||||
color?: string;
|
||||
|
||||
constructor(data: any) {
|
||||
constructor(data: Sys) {
|
||||
this.id = data.id;
|
||||
this.uuid = data.uuid;
|
||||
this.name = data.name;
|
||||
|
Loading…
Reference in New Issue
Block a user