Fix to canvas zoom

This commit is contained in:
2024-08-26 14:22:42 +02:00
parent e81a8505a9
commit 4871510eea
2 changed files with 15 additions and 15 deletions

19
types/api.d.ts vendored
View File

@@ -6,11 +6,7 @@ export interface SuccessHandler
export interface ErrorHandler
{
success: false;
error: Error | ZodError<{
username: string;
email: string;
password: string;
}>;
error: Error | ZodError;
}
export type Return = SuccessHandler | ErrorHandler;
@@ -29,16 +25,19 @@ export interface Navigation {
private: boolean;
children?: Navigation[];
}
export type FileMetadata = Record<string, boolean | string | number>;
export type FileType = 'Markdown' | 'Canvas' | 'File' | 'Folder';
export interface File {
project: number;
path: string;
owner: number;
title: string;
order: number;
type: 'Markdown' | 'Canvas' | 'File' | 'Folder';
type: FileType;
content: string;
navigable: boolean;
private: boolean;
metadata: FileMetadata;
}
export interface Comment {
project: number;
@@ -53,21 +52,21 @@ export interface User {
id: number;
username: string;
}
export interface ProjectSearch extends Project
export type ProjectSearch = Project &
{
pages: number;
username: string;
}
export interface FileSearch extends File
export type FileSearch = Omit<File, 'content'> &
{
comments: number;
username: string;
}
export interface CommentSearch extends Comment
export type CommentSearch = Comment &
{
username: string;
}
export interface UserSearch extends User
export type UserSearch = User &
{
}
export interface Search {