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;
|
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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user