From fef5d77443c95371b44b660873790800649cc576 Mon Sep 17 00:00:00 2001 From: Thomas Rupprecht Date: Sat, 10 Dec 2022 14:56:10 +0100 Subject: [PATCH] add JSDoc for `ready` function --- resources/assets/js/ready.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/assets/js/ready.js b/resources/assets/js/ready.js index 8e1f48ef..4af59df4 100644 --- a/resources/assets/js/ready.js +++ b/resources/assets/js/ready.js @@ -1,3 +1,6 @@ +/** + * @param {Function} callback + */ export const ready = (callback) => { if (document.readyState !== 'loading') { callback();