Skip to content

Commit ed9f7b0

Browse files
committed
Correct jQuery types
1 parent 5192ff9 commit ed9f7b0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/js/_enqueues/wp/code-editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ if ( 'undefined' === typeof window.wp.codeEditor ) {
406406
*
407407
* @since 4.9.0
408408
*
409-
* @param {string|jQuery|Element} textarea - The HTML id, jQuery object, or DOM Element for the textarea that is used for the editor.
409+
* @param {string|JQuery<HTMLElement>|HTMLElement} textarea - The HTML id, jQuery object, or DOM Element for the textarea that is used for the editor.
410410
* @param {CodeEditorSettings} [settings] - Settings to override defaults.
411411
*
412412
* @return {CodeEditorInstance} Instance.

typings/wp-globals/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
declare var wp: any;
2-
declare var jQuery: import('jquery');
2+
declare var jQuery: import('jquery').JQueryStatic;
33
declare var _: import('underscore');
44
declare var Backbone: any;
55
declare var HTMLHint: import('htmlhint').HTMLHint;

0 commit comments

Comments
 (0)