Skip to content

@jsvision/core / BoundedPasteText

Interface: BoundedPasteText

Defined in: input/paste.ts:25

A plain-text paste after applying its UTF-8 byte boundary.

truncated distinguishes an empty clipboard from a non-empty value that could not fit. The returned text is always an exact JavaScript-string prefix of the input.

Properties

text

readonly text: string

Defined in: input/paste.ts:27

The original text when it fits, otherwise the longest complete prefix within the byte cap.


truncated

readonly truncated: boolean

Defined in: input/paste.ts:29

Whether one or more input code points were omitted because they exceeded the byte cap.