Fix formatting warnings in text-editor package (#4128)

Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2023-12-04 13:41:36 +07:00
committed by GitHub
parent d3f0ae9667
commit 2e4b6c5fc5
14 changed files with 65 additions and 64 deletions
@@ -21,7 +21,7 @@
export let compareTo: string
export let method: 'diffChars' | 'diffWords' | 'diffWordsWithSpace' = 'diffChars'
const handleDiff = (oldValue: string, newValue: string) => Diff[method](oldValue, newValue)
const handleDiff = (oldValue: string, newValue: string): Diff.Change[] => Diff[method](oldValue, newValue)
$: changes = handleDiff(compareTo, value)
</script>