0
0
Fork 0

Add eslint-plugin-jsdoc (#24719)

This commit is contained in:
Nick Schonning 2023-04-29 20:29:54 -04:00 committed by GitHub
parent bfeccf6748
commit f22b4e556c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 100 additions and 54 deletions

View file

@ -4,7 +4,7 @@ import { isMobile } from '../is_mobile';
let cachedScrollbarWidth = null;
/**
* @return {number}
* @returns {number}
*/
const getActualScrollbarWidth = () => {
const outer = document.createElement('div');
@ -22,7 +22,7 @@ const getActualScrollbarWidth = () => {
};
/**
* @return {number}
* @returns {number}
*/
export const getScrollbarWidth = () => {
if (cachedScrollbarWidth !== null) {