aboutsummaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
Diffstat (limited to 'types')
-rw-r--r--types/ext/dom-text-scanner.d.ts25
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;