Skip to content

Commit 51e8541

Browse files
committed
chore(auth): list type
1 parent 354f862 commit 51e8541

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

packages/app/src/components/page/editor/vault/EditorVaultList.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<script setup lang="ts">
1717
import { useAuthStore } from '@/store/auth';
1818
import { useBackend } from '@/use/backend';
19+
import type { AuthItem } from 'better-write-types';
1920
import { ref } from 'vue';
2021
import { useI18n } from 'vue-i18n';
2122
@@ -25,7 +26,7 @@ const backend = useBackend()
2526
const { t } = useI18n()
2627
2728
// TODO: Backend here
28-
const projects = ref<any[]>([{
29+
const projects = ref<AuthItem[]>([{
2930
title: 'A Test',
3031
// Maybe background
3132
background: 'base64',

packages/types/src/auth.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@ export interface AuthState {
66
account: {
77
project_id_activity: Maybe<number>,
88
},
9+
}
10+
11+
export interface AuthItem {
12+
title: string,
13+
size: string,
14+
level: number
915
}

0 commit comments

Comments
 (0)