diff options
author | Cashew <52880648+Scrub1492@users.noreply.github.com> | 2024-01-13 11:58:48 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-13 04:58:48 +0000 |
commit | 36c40ff671ae1f8a05aac77c8694e9bccdda85fb (patch) | |
tree | 4bebcaf1659dfb44e25ee60785dbc512aedf3629 /types | |
parent | 60276d41ffd90044acc2f95e70b9b0c9a770417a (diff) |
type updates (#500)
* type updates
* remove comments
* fix comment
* remove types
Diffstat (limited to 'types')
-rw-r--r-- | types/ext/dictionary-importer.d.ts | 21 | ||||
-rw-r--r-- | types/ext/dom-text-scanner.d.ts | 22 | ||||
-rw-r--r-- | types/ext/log.d.ts | 9 | ||||
-rw-r--r-- | types/ext/text-scanner.d.ts | 12 |
4 files changed, 36 insertions, 28 deletions
diff --git a/types/ext/dictionary-importer.d.ts b/types/ext/dictionary-importer.d.ts index cda1bd19..2d16dc5e 100644 --- a/types/ext/dictionary-importer.d.ts +++ b/types/ext/dictionary-importer.d.ts @@ -25,20 +25,13 @@ export type OnProgressCallback = (data: ProgressData) => void; /** * An enum representing the import step. - * - * `-2` `-1` Dictionary import is uninitialized. - * - * `0` Load dictionary archive and validate index step. - * - * `1` Load schemas and get archive files step. - * - * `2` Load and validate dictionary data step. - * - * `3` Format dictionary data and extended data support step. - * - * `4` Resolve async requirements and import media step. - * - * `5` Add dictionary descriptor and import data step. + * - `-2` `-1` - Dictionary import is uninitialized. + * - `0` - Load dictionary archive and validate index step. + * - `1` - Load schemas and get archive files step. + * - `2` - Load and validate dictionary data step. + * - `3` - Format dictionary data and extended data support step. + * - `4` - Resolve async requirements and import media step. + * - `5` - Add dictionary descriptor and import data step. */ export type ImportStep = -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5; diff --git a/types/ext/dom-text-scanner.d.ts b/types/ext/dom-text-scanner.d.ts index 33c01aa8..c3e26493 100644 --- a/types/ext/dom-text-scanner.d.ts +++ b/types/ext/dom-text-scanner.d.ts @@ -24,3 +24,25 @@ * - `3` - Character should be added to the content and is a newline. */ export type CharacterAttributes = 0 | 1 | 2 | 3; + +/** + * Seek information about an element. + * The `enterable` value indicates whether the content of this node should be entered. + * The `newlines` value corresponds to the number of newline characters that should be added. + * - 1 newline corresponds to a simple new line in the layout. + * - 2 newlines corresponds to a significant visual distinction since the previous content. + */ +export type ElementSeekInfo = { + enterable: boolean; + newlines: number; +}; + +/** + * Information about the whitespace. + * `preserveNewlines` indicates whether or not newline characters are treated as line breaks. + * `preserveWhitespace` indicates whether or not sequences of whitespace characters are collapsed. + */ +export type WhitespaceSettings = { + preserveNewlines: boolean; + preserveWhitespace: boolean; +}; diff --git a/types/ext/log.d.ts b/types/ext/log.d.ts index e8ca4c43..18616d58 100644 --- a/types/ext/log.d.ts +++ b/types/ext/log.d.ts @@ -25,12 +25,9 @@ export type LogContext = { /** * An enum representing the log error level. - * - * `0` _log_, _info_, _debug_ level. - * - * `1` _warn_ level. - * - * `2` _error_ level. + * - `0` - _log_, _info_, _debug_ level. + * - `1` - _warn_ level. + * - `2` - _error_ level. */ export type LogErrorLevelValue = 0 | 1 | 2; diff --git a/types/ext/text-scanner.d.ts b/types/ext/text-scanner.d.ts index e2779e4d..d4214a1d 100644 --- a/types/ext/text-scanner.d.ts +++ b/types/ext/text-scanner.d.ts @@ -197,14 +197,10 @@ export type PointerEventType = ( /** * An enum representing the pen pointer state. - * - * `0` Not active. - * - * `1` Hovering. - * - * `2` Touching. - * - * `3` Hovering after touching. + * - `0` - Not active. + * - `1` - Hovering. + * - `2` - Touching. + * - `3` - Hovering after touching. */ export type PenPointerState = 0 | 1 | 2 | 3; |