mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
chore: fix last type/linting errors
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
export let noMargin = false;
|
||||
let isOverflowing = false;
|
||||
|
||||
const hasOverflow: Action<HTMLDivElement, any> = (node) => {
|
||||
const hasOverflow: Action<HTMLDivElement, unknown> = (node) => {
|
||||
const observer = new ResizeObserver((entries) => {
|
||||
for (const entry of entries) {
|
||||
let overflowing = false;
|
||||
|
||||
@@ -26,6 +26,8 @@ export function deepClone<T>(obj: T): T {
|
||||
export type DeepObj<T> = {
|
||||
[K in keyof T]: T[K] extends object ? DeepObj<T[K]> : T[K];
|
||||
};
|
||||
|
||||
/* eslint @typescript-eslint/no-explicit-any: 'off' */
|
||||
export function deepMap<T, U>(
|
||||
obj: DeepObj<T>,
|
||||
fn: (value: T, key: string, parentKey?: string) => unknown,
|
||||
|
||||
+1
@@ -87,6 +87,7 @@
|
||||
}
|
||||
|
||||
// We cast to any to not cause type errors in the input components
|
||||
/* eslint @typescript-eslint/no-explicit-any: 'off' */
|
||||
let value: any = null;
|
||||
|
||||
$: {
|
||||
|
||||
Reference in New Issue
Block a user