1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00
This commit is contained in:
DanieL 2023-02-13 14:41:08 -03:00
parent 64c36d9f4e
commit 0d0338876d
1197 changed files with 121461 additions and 179724 deletions

View file

@ -476,7 +476,7 @@ declare class EditorSelection {
/**
Create a selection range.
*/
static range(anchor: number, head: number, goalColumn?: number): SelectionRange;
static range(anchor: number, head: number, goalColumn?: number, bidiLevel?: number): SelectionRange;
}
declare type FacetConfig<Input, Output> = {
@ -505,13 +505,14 @@ declare type FacetConfig<Input, Output> = {
*/
static?: boolean;
/**
If given, these extension(s) will be added to any state where
this facet is provided. (Note that, while a facet's default
value can be read from a state even if the facet wasn't present
in the state at all, these extensions won't be added in that
If given, these extension(s) (or the result of calling the given
function with the facet) will be added to any state where this
facet is provided. (Note that, while a facet's default value can
be read from a state even if the facet wasn't present in the
state at all, these extensions won't be added in that
situation.)
*/
enables?: Extension;
enables?: Extension | ((self: Facet<Input, Output>) => Extension);
};
/**
A facet is a labeled value that is associated with an editor
@ -1227,6 +1228,18 @@ declare class EditorState {
/**
Find the values for a given language data field, provided by the
the [`languageData`](https://codemirror.net/6/docs/ref/#state.EditorState^languageData) facet.
Examples of language data fields are...
- [`"commentTokens"`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) for specifying
comment syntax.
- [`"autocomplete"`](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion^config.override)
for providing language-specific completion sources.
- [`"wordChars"`](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer) for adding
characters that should be considered part of words in this
language.
- [`"closeBrackets"`](https://codemirror.net/6/docs/ref/#autocomplete.CloseBracketConfig) controls
bracket closing behavior.
*/
languageDataAt<T>(name: string, pos: number, side?: -1 | 0 | 1): readonly T[];
/**