mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-01 09:58:47 -04:00
Tried to rework type safety
This commit is contained in:
@@ -30,6 +30,10 @@ export default class Lock {
|
||||
* Lock body for full-screen search modal
|
||||
*
|
||||
* @constructor
|
||||
*
|
||||
* @property {HTMLInputElement} el_ - TODO
|
||||
* @property {number} offset_ - TODO
|
||||
*
|
||||
* @param {(string|HTMLElement)} el - Selector or HTML element
|
||||
*/
|
||||
constructor(el) {
|
||||
|
||||
@@ -32,8 +32,13 @@ export default class Result {
|
||||
* Perform search and update results on keyboard events
|
||||
*
|
||||
* @constructor
|
||||
*
|
||||
* @property {HTMLElement} el_ - TODO
|
||||
* @property {(Object|Array<Object>|Function)} data_ - TODO (very dirty)
|
||||
* @property {React$Element|HTMLElement} meta_ - TODO
|
||||
*
|
||||
* @param {(string|HTMLElement)} el - Selector or HTML element
|
||||
* @param {(Array.<object>|Function)} data - Promise or array providing data
|
||||
* @param {(Array<Object>|Function)} data - Promise or array providing data // TODO ????
|
||||
*/
|
||||
constructor(el, data) {
|
||||
this.el_ = (typeof el === "string")
|
||||
|
||||
Reference in New Issue
Block a user