tweak(api): make sure data for the constructor is typed instead of any

This commit is contained in:
Spectralitree 2022-01-12 10:46:05 +01:00
parent e897a33c41
commit 3e435c252c
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ export default class Group {
created?: string; created?: string;
members?: string[]; members?: string[];
constructor(data: any) { constructor(data: Group) {
this.id = data.id; this.id = data.id;
this.uuid = data.uuid; this.uuid = data.uuid;
this.name = data.name; this.name = data.name;

View File

@ -30,7 +30,7 @@ export default class Member {
proxy_tags?: Array<proxytag>; proxy_tags?: Array<proxytag>;
privacy?: MemberPrivacy privacy?: MemberPrivacy
constructor(data: any) { constructor(data: Member) {
this.id = data.id; this.id = data.id;
this.uuid = data.uuid; this.uuid = data.uuid;
this.name = data.name; this.name = data.name;

View File

@ -19,7 +19,7 @@ export default class Sys {
privacy?: SystemPrivacy; privacy?: SystemPrivacy;
color?: string; color?: string;
constructor(data: any) { constructor(data: Sys) {
this.id = data.id; this.id = data.id;
this.uuid = data.uuid; this.uuid = data.uuid;
this.name = data.name; this.name = data.name;