49 lines
773 B
TypeScript
49 lines
773 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 BaseNotes {
|
|
[noteId: string]: BaseNote
|
|
}
|
|
|
|
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[]
|
|
}
|
|
}
|
|
|
|
type ClientKey = string
|
|
type EncryptedEncryptionKey = string
|
|
type EncryptionKey = string
|
|
}
|
|
export {}
|