mirror of
https://github.com/myfatemi04/wheelshare-old-backend.git
synced 2025-04-21 12:10:17 -04:00
fix: fixed document extend type errors
This commit is contained in:
parent
31966a8e65
commit
055ee61f56
10
src/types.ts
10
src/types.ts
|
@ -1,10 +1,10 @@
|
||||||
namespace Carpool {
|
namespace Carpool {
|
||||||
export interface Group extends Document {
|
export interface Group {
|
||||||
id: string;
|
id: string;
|
||||||
member_ids: string[];
|
member_ids: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface User extends Document {
|
export interface User {
|
||||||
id: string;
|
id: string;
|
||||||
email: string;
|
email: string;
|
||||||
username: string;
|
username: string;
|
||||||
|
@ -12,15 +12,15 @@ namespace Carpool {
|
||||||
last_name: string;
|
last_name: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Comment extends Document {
|
export interface Comment {
|
||||||
id: string;
|
id: string;
|
||||||
text: string;
|
body: string;
|
||||||
author_id: string;
|
author_id: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Status = 'pending' | 'cancelled' | 'completed' | 'interrupted';
|
export type Status = 'pending' | 'cancelled' | 'completed' | 'interrupted';
|
||||||
|
|
||||||
export interface Pool extends Document {
|
export interface Pool {
|
||||||
id: string;
|
id: string;
|
||||||
title: string;
|
title: string;
|
||||||
description: string;
|
description: string;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user