Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🏷️ Convert interfaces to type aliases #799

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/web/src/lib/features/comment/Comment.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
import type { Comment } from './commentStore.svelte';
import { commentStore } from './commentStore.svelte';

interface Card {
type Card = {
id: number;
me: boolean;
name: string;
createdAt: cdate.CDate;
message: string;
filePath: string | null;
}
};

let {
comment,
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/lib/features/comment/commentStore.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { supabase } from '$lib/supabase';

import { deleteCommentFile, uploadCommentFile } from './commentRequests';

export interface Comment {
export type Comment = {
id: number;
profiles: {
id: string;
Expand All @@ -14,7 +14,7 @@ export interface Comment {
text: string;
file_path: string | null;
created_at: string;
}
};

export const commentQuery = `
id,
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/lib/features/user/userStore.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import snakecaseKeys from 'snakecase-keys';

import { supabase } from '$lib/supabase';

export interface User {
export type User = {
id: string;
email: string;
displayName: string;
bio: string;
createdAt: string;
}
};

class UserStore {
#user = $state<User | null>(null);
Expand Down