mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
npm update
This commit is contained in:
parent
0cdd3e9fee
commit
4696ba952f
1437 changed files with 32727 additions and 1248226 deletions
24
node_modules/@codemirror/lint/dist/index.d.ts
generated
vendored
24
node_modules/@codemirror/lint/dist/index.d.ts
generated
vendored
|
@ -1,7 +1,8 @@
|
|||
import * as _codemirror_state from '@codemirror/state';
|
||||
import { EditorState, TransactionSpec, Extension } from '@codemirror/state';
|
||||
import { EditorView, Command, KeyBinding } from '@codemirror/view';
|
||||
import { EditorView, Command, KeyBinding, ViewUpdate } from '@codemirror/view';
|
||||
|
||||
declare type Severity = "hint" | "info" | "warning" | "error";
|
||||
/**
|
||||
Describes a problem or hint for a piece of code.
|
||||
*/
|
||||
|
@ -19,7 +20,12 @@ interface Diagnostic {
|
|||
The severity of the problem. This will influence how it is
|
||||
displayed.
|
||||
*/
|
||||
severity: "info" | "warning" | "error";
|
||||
severity: Severity;
|
||||
/**
|
||||
When given, add an extra CSS class to parts of the code that
|
||||
this diagnostic applies to.
|
||||
*/
|
||||
markClass?: string;
|
||||
/**
|
||||
An optional source string indicating where the diagnostic is
|
||||
coming from. You can put the name of your linter here, if
|
||||
|
@ -64,6 +70,12 @@ interface LintConfig {
|
|||
*/
|
||||
delay?: number;
|
||||
/**
|
||||
Optional predicate that can be used to indicate when diagnostics
|
||||
need to be recomputed. Linting is always re-done on document
|
||||
changes.
|
||||
*/
|
||||
needsRefresh?: null | ((update: ViewUpdate) => boolean);
|
||||
/**
|
||||
Optional filter to determine which diagnostics produce markers
|
||||
in the content.
|
||||
*/
|
||||
|
@ -118,6 +130,10 @@ Move the selection to the next diagnostic.
|
|||
*/
|
||||
declare const nextDiagnostic: Command;
|
||||
/**
|
||||
Move the selection to the previous diagnostic.
|
||||
*/
|
||||
declare const previousDiagnostic: Command;
|
||||
/**
|
||||
A set of default key bindings for the lint functionality.
|
||||
|
||||
- Ctrl-Shift-m (Cmd-Shift-m on macOS): [`openLintPanel`](https://codemirror.net/6/docs/ref/#lint.openLintPanel)
|
||||
|
@ -148,10 +164,10 @@ declare function lintGutter(config?: LintGutterConfig): Extension;
|
|||
/**
|
||||
Iterate over the marked diagnostics for the given editor state,
|
||||
calling `f` for each of them. Note that, if the document changed
|
||||
since the diagnostics werecreated, the `Diagnostic` object will
|
||||
since the diagnostics were created, the `Diagnostic` object will
|
||||
hold the original outdated position, whereas the `to` and `from`
|
||||
arguments hold the diagnostic's current position.
|
||||
*/
|
||||
declare function forEachDiagnostic(state: EditorState, f: (d: Diagnostic, from: number, to: number) => void): void;
|
||||
|
||||
export { Action, Diagnostic, LintSource, closeLintPanel, diagnosticCount, forEachDiagnostic, forceLinting, lintGutter, lintKeymap, linter, nextDiagnostic, openLintPanel, setDiagnostics, setDiagnosticsEffect };
|
||||
export { Action, Diagnostic, LintSource, closeLintPanel, diagnosticCount, forEachDiagnostic, forceLinting, lintGutter, lintKeymap, linter, nextDiagnostic, openLintPanel, previousDiagnostic, setDiagnostics, setDiagnosticsEffect };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue