simple-auth-cli
Version:
An implementation of authentication system supporting multiple providers ready to be used with a single command.
16 lines (13 loc) • 395 B
text/typescript
class apiResponse<T> {
public statusCode: number;
public data: T;
public message: string;
public success: boolean;
constructor(statusCode: number, data: T, message: string = "Success") {
this.statusCode = statusCode;
this.data = data;
this.message = message;
this.success = statusCode < 400;
}
}
export { apiResponse };