You've already forked obsidian-visualiser
Fix to canvas zoom
This commit is contained in:
19
types/api.d.ts
vendored
19
types/api.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user