mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +01:00 
			
		
		
		
	chore: use more narrow NoteType for RevisionRow
This commit is contained in:
		
							parent
							
								
									e3d0c53d03
								
							
						
					
					
						commit
						7bd9be7b29
					
				| @ -7,7 +7,7 @@ import becca from "../becca.js"; | |||||||
| import AbstractBeccaEntity from "./abstract_becca_entity.js"; | import AbstractBeccaEntity from "./abstract_becca_entity.js"; | ||||||
| import sql from "../../services/sql.js"; | import sql from "../../services/sql.js"; | ||||||
| import BAttachment from "./battachment.js"; | import BAttachment from "./battachment.js"; | ||||||
| import type { AttachmentRow, RevisionRow } from "./rows.js"; | import type { AttachmentRow, NoteType, RevisionRow } from "./rows.js"; | ||||||
| import eraseService from "../../services/erase.js"; | import eraseService from "../../services/erase.js"; | ||||||
| 
 | 
 | ||||||
| interface ContentOpts { | interface ContentOpts { | ||||||
| @ -36,7 +36,7 @@ class BRevision extends AbstractBeccaEntity<BRevision> { | |||||||
| 
 | 
 | ||||||
|     revisionId?: string; |     revisionId?: string; | ||||||
|     noteId!: string; |     noteId!: string; | ||||||
|     type!: string; |     type!: NoteType; | ||||||
|     mime!: string; |     mime!: string; | ||||||
|     title!: string; |     title!: string; | ||||||
|     dateLastEdited?: string; |     dateLastEdited?: string; | ||||||
|  | |||||||
| @ -22,7 +22,7 @@ export interface AttachmentRow { | |||||||
| export interface RevisionRow { | export interface RevisionRow { | ||||||
|     revisionId?: string; |     revisionId?: string; | ||||||
|     noteId: string; |     noteId: string; | ||||||
|     type: string; |     type: NoteType; | ||||||
|     mime: string; |     mime: string; | ||||||
|     isProtected?: boolean; |     isProtected?: boolean; | ||||||
|     title: string; |     title: string; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Panagiotis Papadopoulos
						Panagiotis Papadopoulos