fix: satisfy arrow ligature type checks

This commit is contained in:
lucaronin
2026-04-23 22:14:20 +02:00
parent 4ed0289989
commit 65a421215a
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ import { resolveArrowLigatureInput } from '../utils/arrowLigatures'
const PREFIX_CONTEXT_LENGTH = 2
function isInsertedCharacter(event: InputEvent) {
function isInsertedCharacter(event: InputEvent): event is InputEvent & { data: string } {
return event.inputType === 'insertText' && typeof event.data === 'string'
}