mirror of
https://github.com/bitwarden/jslib
synced 2025-12-23 03:33:29 +00:00
add two factor apis
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
export class ListResponse {
|
||||
data: any;
|
||||
export class ListResponse<T> {
|
||||
data: T[];
|
||||
continuationToken: string;
|
||||
|
||||
constructor(data: any) {
|
||||
this.data = data;
|
||||
constructor(response: any, t: new (dataResponse: any) => T) {
|
||||
this.data = response.Data.map((dr) => new t(dr));
|
||||
this.continuationToken = response.ContinuationToken;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user