mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-10 02:52:27 +03:00
further improve repo setup
This commit is contained in:
@@ -27,6 +27,7 @@ export const resize = (element: HTMLElement) => {
|
||||
appendChildren(element, resizeBtn);
|
||||
addClass(element, 'resizer');
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
let dragResizeBtn: HTMLElement | undefined;
|
||||
let dragResizer: HTMLElement | undefined;
|
||||
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
export const timeout = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
|
||||
export const timeout = (ms: number) =>
|
||||
new Promise((resolve) => {
|
||||
setTimeout(resolve, ms);
|
||||
});
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from './Select';
|
||||
export * from './TestResult';
|
||||
export * from './Timeout';
|
||||
export * from './select';
|
||||
export * from './testResult';
|
||||
export * from './timeout';
|
||||
export * from './resize';
|
||||
|
||||
@@ -67,11 +67,8 @@ export function style<CustomCssProps>(
|
||||
elm: HTMLElement | false | null | undefined,
|
||||
styles: StyleObject<CustomCssProps>
|
||||
): void;
|
||||
export function style<CustomCssProps>(
|
||||
elm: HTMLElement | false | null | undefined,
|
||||
styles: string
|
||||
): string;
|
||||
export function style<CustomCssProps>(
|
||||
export function style(elm: HTMLElement | false | null | undefined, styles: string): string;
|
||||
export function style(
|
||||
elm: HTMLElement | false | null | undefined,
|
||||
styles: Array<string> | string
|
||||
): { [key: string]: string };
|
||||
|
||||
@@ -97,6 +97,7 @@ export const assignDeep: AssignDeep = <T, U, V, W, X, Y, Z>(
|
||||
*/
|
||||
export const isEmptyObject = (obj: any): boolean => {
|
||||
/* eslint-disable no-restricted-syntax, guard-for-in */
|
||||
// eslint-disable-next-line no-unreachable-loop
|
||||
for (const name in obj) return false;
|
||||
return true;
|
||||
/* eslint-enable */
|
||||
|
||||
Reference in New Issue
Block a user