mirror of
https://github.com/myfatemi04/wheelshare-old-backend.git
synced 2025-04-21 12:10:17 -04:00
add .prettierrc
This commit is contained in:
parent
e72b6e5135
commit
1121ae0f66
7
.prettierrc
Normal file
7
.prettierrc
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"arrowParens": "always",
|
||||||
|
"bracketSpacing": true,
|
||||||
|
"singleQuote": true,
|
||||||
|
"tabWidth": 2,
|
||||||
|
"useTabs": true
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
let users: Record<string, Carpool.User> = {};
|
10
src/types.ts
10
src/types.ts
|
@ -1,24 +1,24 @@
|
||||||
namespace Carpool {
|
namespace Carpool {
|
||||||
interface Group {
|
export interface Group {
|
||||||
id: string;
|
id: string;
|
||||||
member_ids: string[];
|
member_ids: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
interface User {
|
export interface User {
|
||||||
id: string;
|
id: string;
|
||||||
first_name: string;
|
first_name: string;
|
||||||
last_name: string;
|
last_name: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Comment {
|
export interface Comment {
|
||||||
id: string;
|
id: string;
|
||||||
body: string;
|
body: string;
|
||||||
author_id: string;
|
author_id: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
type Status = "pending" | "cancelled" | "completed" | "interrupted";
|
export type Status = "pending" | "cancelled" | "completed" | "interrupted";
|
||||||
|
|
||||||
interface Post {
|
export interface Post {
|
||||||
id: string;
|
id: string;
|
||||||
title: string;
|
title: string;
|
||||||
description: string;
|
description: string;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user