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;
members?: string[];
constructor(data: any) {
constructor(data: Group) {
this.id = data.id;
this.uuid = data.uuid;
this.name = data.name;

View File

@ -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;

View File

@ -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;