Skip to content

Commit e107532

Browse files
committed
fix(ts): Fix ts error.
1 parent 3131360 commit e107532

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/diff/effective_diff.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export class diff_match_patch {}

src/diff/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export async function getRemoteFileDiff(vault: Vault, filePath: string, remoteMD
3030
}
3131
const localContent = await vault.adapter.readBinary(filePath).then(buf => new TextDecoder().decode(buf));
3232
console.log('updated local contents: ', filePath, localContent);
33-
const dmp = new diff_match_patch();
33+
const dmp: any = new diff_match_patch();
3434
const uDiff = dmp.diff_main(localContent, remoteMD);
3535
dmp.diff_cleanupSemantic(uDiff);
3636

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
"isolatedModules": true,
1717
"lib": ["dom", "es5", "scripthost", "es2021"]
1818
},
19-
"include": ["**/*.ts", "**/*.tsx", "./declarations.d.ts"]
19+
"include": ["**/*.ts", "**/*.tsx", "src/diff/*.js", "./declarations.d.ts"]
2020
}

0 commit comments

Comments
 (0)