Files
contexted-v3/src/types.d.ts
2023-05-22 00:19:46 +02:00

41 lines
617 B
TypeScript

declare global {
interface BaseNote {
id: string
title: string
content: string
created: number
modified: number
isRoot?: boolean
}
interface Note extends BaseNote {
wordCount: number
}
interface ViewMode {
name: string
icon: string
}
interface AutocompleteEvent {
position?: any
autocompleteText?: string
domElement?: HTMLElement
show: boolean
}
interface NoteRelations {
id: string
to: string[]
from: string[]
}
interface NotesRelations {
[noteId: string]: {
to: string[]
from: string[]
}
}
}
export {}