NotesOps
Interface: NotesOps
Section titled “Interface: NotesOps”Defined in: types.ts:180
Methods
Section titled “Methods”deleteNote()
Section titled “deleteNote()”deleteNote(
notesDir,notePath,userId):Promise<void>
Defined in: types.ts:183
Parameters
Section titled “Parameters”notesDir
Section titled “notesDir”string
notePath
Section titled “notePath”string
userId
Section titled “userId”string
Returns
Section titled “Returns”Promise<void>
readNote()
Section titled “readNote()”readNote(
notesDir,notePath):Promise<{content:string;modifiedAt:Date;title:string; }>
Defined in: types.ts:181
Parameters
Section titled “Parameters”notesDir
Section titled “notesDir”string
notePath
Section titled “notePath”string
Returns
Section titled “Returns”Promise<{ content: string; modifiedAt: Date; title: string; }>
scanDirectory()
Section titled “scanDirectory()”scanDirectory(
dir,basePath?):Promise<object[]>
Defined in: types.ts:184
Parameters
Section titled “Parameters”string
basePath?
Section titled “basePath?”string
Returns
Section titled “Returns”Promise<object[]>
writeNote()
Section titled “writeNote()”writeNote(
notesDir,notePath,content,userId):Promise<void>
Defined in: types.ts:182
Parameters
Section titled “Parameters”notesDir
Section titled “notesDir”string
notePath
Section titled “notePath”string
content
Section titled “content”string
userId
Section titled “userId”string
Returns
Section titled “Returns”Promise<void>