mirror of
https://github.com/myfatemi04/wheelshare-old-backend.git
synced 2025-04-09 14:40: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 {
|
||||
interface Group {
|
||||
export interface Group {
|
||||
id: string;
|
||||
member_ids: string[];
|
||||
}
|
||||
|
||||
interface User {
|
||||
export interface User {
|
||||
id: string;
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
}
|
||||
|
||||
interface Comment {
|
||||
export interface Comment {
|
||||
id: string;
|
||||
body: string;
|
||||
author_id: string;
|
||||
}
|
||||
|
||||
type Status = "pending" | "cancelled" | "completed" | "interrupted";
|
||||
export type Status = "pending" | "cancelled" | "completed" | "interrupted";
|
||||
|
||||
interface Post {
|
||||
export interface Post {
|
||||
id: string;
|
||||
title: string;
|
||||
description: string;
|
||||
|
|
Loading…
Reference in New Issue
Block a user