You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: code-input.d.ts
+4-19Lines changed: 4 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ export namespace plugins {
91
91
* Create an auto-close brackets plugin to pass into a template
92
92
* @param {Object} bracketPairs Opening brackets mapped to closing brackets, default and example {"(": ")", "[": "]", "{": "}", '"': '"'}. All brackets must only be one character.
93
93
*/
94
-
constructor(bracketPairs: Object);
94
+
constructor(bracketPairs?: Object);
95
95
}
96
96
// ESM-SUPPORT-END-PLUGIN-auto-close-brackets Do not (re)move this - it's needed for ESM generation
97
97
@@ -120,21 +120,6 @@ export namespace plugins {
120
120
}
121
121
// ESM-SUPPORT-END-PLUGIN-autodetect Do not (re)move this - it's needed for ESM generation
122
122
123
-
// E doesn't exist? SM-SUPPORT-START-PLUGIN-debounce-update Do not (re)move this - it's needed for ESM generation
* Create a debounced update plugin to pass into a template.
132
-
* @param {Number} delayMs Delay, in ms, to wait until updating the syntax highlighting
133
-
*/
134
-
constructor(delayMs: number);
135
-
}
136
-
// E doesn't exist? SM-SUPPORT-END-PLUGIN-debounce-update Do not (re)move this - it's needed for ESM generation
137
-
138
123
// ESM-SUPPORT-START-PLUGIN-find-and-replace Do not (re)move this - it's needed for ESM generation
139
124
/**
140
125
* Add Find-and-Replace (Ctrl+F for find, Ctrl+H for replace by default) functionality to the code editor.
@@ -189,7 +174,7 @@ export namespace plugins {
189
174
* @param {boolean} useCtrlG Should Ctrl+G be overriden for go-to-line functionality? If not, you can trigger it yourself using (instance of this plugin)`.showPrompt(code-input element)`.
190
175
* @param {Object} instructionTranslations: user interface string keys mapped to translated versions for localisation. Look at the go-to-line.js source code for the English text.
191
176
*/
192
-
constructor(useCtrlG: boolean,
177
+
constructor(useCtrlG?: boolean,
193
178
instructionTranslations?: {
194
179
closeDialog?: string;
195
180
input?: string;
@@ -217,7 +202,7 @@ export namespace plugins {
217
202
* @param {boolean} escTabToChangeFocus Whether pressing the Escape key before (Shift+)Tab should make this keypress focus on a different element (Tab's default behaviour). You should always either enable this or use this plugin's disableTabIndentation and enableTabIndentation methods linked to other keyboard shortcuts, for accessibility.
218
203
* @param {Object} instructionTranslations: user interface string keys mapped to translated versions for localisation. Look at the go-to-line.js source code for the English text.
* @param {string} selectedClass The CSS class that will be present on tokens only when they are part of the selected text in the `<code-input>` element. Defaults to "code-input_select-token-callbacks_selected".
271
256
* @returns {TokenSelectorCallbacks} A new TokenSelectorCallbacks instance that encodes this behaviour.
0 commit comments