add JSDoc for `ready` function

This commit is contained in:
Thomas Rupprecht 2022-12-10 14:56:10 +01:00 committed by Igor Scheller
parent 5bd922d109
commit fef5d77443
1 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,6 @@
/**
* @param {Function} callback
*/
export const ready = (callback) => { export const ready = (callback) => {
if (document.readyState !== 'loading') { if (document.readyState !== 'loading') {
callback(); callback();