mirror of
https://github.com/zadam/trilium.git
synced 2025-12-04 22:44:25 +01:00
rename conflicting type name
This commit is contained in:
parent
0cec3c7764
commit
400674325a
@ -1,5 +1,5 @@
|
||||
import { useEffect, useState } from "preact/hooks";
|
||||
import { EditedNotesResponse, EditedNotes as EditedNotesList } from "@triliumnext/commons";
|
||||
import { EditedNotesResponse, EditedNote } from "@triliumnext/commons";
|
||||
import server from "../services/server";
|
||||
import { t } from "../services/i18n";
|
||||
import froca from "../services/froca";
|
||||
@ -12,7 +12,7 @@ interface EditedNotesProps {
|
||||
}
|
||||
|
||||
export default function EditedNotes({ noteId, dateFilter } : EditedNotesProps) {
|
||||
const [ editedNotes, setEditedNotes ] = useState<EditedNotesList>();
|
||||
const [ editedNotes, setEditedNotes ] = useState<EditedNote[]>();
|
||||
|
||||
useEffect(() => {
|
||||
if (!noteId || !dateFilter) return;
|
||||
|
||||
@ -6,7 +6,7 @@ import becca from "../../becca/becca.js";
|
||||
import type { Request } from "express";
|
||||
import { NotePojo } from "../../becca/becca-interface.js";
|
||||
import type BNote from "../../becca/entities/bnote.js";
|
||||
import { EditedNotes, EditedNotesResponse } from "@triliumnext/commons";
|
||||
import { EditedNotesResponse } from "@triliumnext/commons";
|
||||
import dateUtils from "../../services/date_utils.js";
|
||||
|
||||
interface NotePath {
|
||||
|
||||
@ -164,7 +164,7 @@ export type ToggleInParentResponse = {
|
||||
}
|
||||
|
||||
export type EditedNotesResponse = {
|
||||
notes: EditedNotes,
|
||||
notes: EditedNote[],
|
||||
limit: number
|
||||
}
|
||||
|
||||
@ -175,8 +175,6 @@ export type EditedNote = {
|
||||
notePath?: string[] | null;
|
||||
};
|
||||
|
||||
export type EditedNotes = EditedNote[];
|
||||
|
||||
export interface MetadataResponse {
|
||||
dateCreated: string | undefined;
|
||||
utcDateCreated: string;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user