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