feat: reuse Config.components types on jsdoc

This commit is contained in:
Ayo Ayco 2024-12-27 22:02:05 +01:00
parent 9e26b4015f
commit dfee34b7eb

View file

@ -85,7 +85,7 @@ function getPath(filename) {
/**
* Returns transformed HTML with custom elements registry in the head
* @param {string} html
* @param {'js'} type
* @param {Config['components']} type
* @param {Storage} storage
* @returns {Promise<string>}
*/
@ -126,7 +126,7 @@ async function insertRegistry(html, type, storage) {
/**
* Builds the string containing all custom elements definition
* @param {Array<string>} usedCustomElements
* @param {"js" | "ts"} type
* @param {Config['components']} type
* @param {Storage} storage
* @returns {Promise<string>}
*/