Files
contexted-v3/src/types.d.ts
2023-05-23 00:44:51 +02:00

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 {}