mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-30 14:09:58 +08:00
Update JSDoc
This commit is contained in:
parent
26742e3ae3
commit
76b6d68bc2
@ -81,6 +81,10 @@ async function initCloset() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {{ name: string, tid: number, type: 'steve' | 'alex' | 'cape' }} item
|
||||
*/
|
||||
function renderClosetItemComponent(item) {
|
||||
return `
|
||||
<div class="item" tid="${item.tid}" data-texture-type="${item.type}">
|
||||
@ -107,8 +111,8 @@ function renderClosetItemComponent(item) {
|
||||
/**
|
||||
* Render closet with giving items & category.
|
||||
*
|
||||
* @param {array} items
|
||||
* @param {string} category
|
||||
* @param {Array<{ name: string, tid: number, type: 'steve' | 'alex' | 'cape' }>} items
|
||||
* @param {'skin' | 'cape'} category
|
||||
*/
|
||||
function renderCloset(items, category) {
|
||||
let search = $('input[name=q]').val();
|
||||
|
Loading…
Reference in New Issue
Block a user