Merge pull request #44 from TriliumNext/feature/typescript_backend_8

Convert backend to TypeScript (80% -> 81%)
This commit is contained in:
Elian Doran
2024-04-16 21:01:20 +03:00
committed by GitHub
22 changed files with 213 additions and 109 deletions

View File

@@ -28,7 +28,7 @@ interface OpmlOutline {
outline: OpmlOutline[];
}
async function importOpml(taskContext: TaskContext, fileBuffer: Buffer, parentNote: BNote) {
async function importOpml(taskContext: TaskContext, fileBuffer: string | Buffer, parentNote: BNote) {
const xml = await new Promise<OpmlXml>(function(resolve, reject)
{
parseString(fileBuffer, function (err: any, result: OpmlXml) {