further improve repo setup

This commit is contained in:
Rene Haas
2022-07-30 20:43:46 +02:00
parent 843d627715
commit 95678c8d75
45 changed files with 153 additions and 391 deletions
+1
View File
@@ -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;
+4 -1
View File
@@ -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);
});
+4 -3
View File
@@ -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 */