diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-12-28 22:04:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-29 03:04:47 +0000 |
commit | 476d7548022ab25cc499f9b3bb712c81a6d3240c (patch) | |
tree | 99401f85513f5c09c2581813673cf95e1b7b4433 /types | |
parent | 580983b9b8a17965db1466aa08cad3c96b06022e (diff) |
Simplify dom text scanner (#453)
* Remove "enum" from name, update comment
* Simplify
Diffstat (limited to 'types')
-rw-r--r-- | types/ext/dom-text-scanner.d.ts | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/types/ext/dom-text-scanner.d.ts b/types/ext/dom-text-scanner.d.ts index e3ae4b53..33c01aa8 100644 --- a/types/ext/dom-text-scanner.d.ts +++ b/types/ext/dom-text-scanner.d.ts @@ -17,23 +17,10 @@ /** * An enum representing the attributes of the character. - * - * `0` Character should be ignored. - * - * `1` Character is collapsible whitespace. - * - * `2` Character should be added to the content. - * - * `3` Character should be added to the content and is a newline. + * This enum is a number enum for more efficient usage in a highly-traversed code path. + * - `0` - Character should be ignored. + * - `1` - Character is collapsible whitespace. + * - `2` - Character should be added to the content. + * - `3` - Character should be added to the content and is a newline. */ -export type CharacterAttributesEnum = 0 | 1 | 2 | 3; - -export type SeekTextNoteDetails = { - done: boolean; - lineHasWhitespace: boolean; - lineHasContent: boolean; - content: string; - offset: number; - remainder: number; - newlines: number; -}; +export type CharacterAttributes = 0 | 1 | 2 | 3; |