mirror of
https://github.com/bitwarden/jslib
synced 2025-12-27 05:33:29 +00:00
10 lines
276 B
TypeScript
10 lines
276 B
TypeScript
export class ListResponse<T> {
|
|
data: T[];
|
|
continuationToken: string;
|
|
|
|
constructor(response: any, t: new (dataResponse: any) => T) {
|
|
this.data = response.Data.map((dr: any) => new t(dr));
|
|
this.continuationToken = response.ContinuationToken;
|
|
}
|
|
}
|