Implemented strict linting standards and prettier formatting config. (#248)
* Implemented strict linting standards and prettier formatting config. * More linter fixes and type updates. * More linter updates and type fixes * Remove noisy comments * Linter and type updates * Linter, formatting and type updates. * Linter updates * Type updates * Type updates * fixed all linter errors * Fixed all linting, formatting and type issues. * Resolve merge conflicts.
This commit is contained in:
13
lib/types/customModules/generic.d.ts
vendored
13
lib/types/customModules/generic.d.ts
vendored
@@ -1,6 +1,13 @@
|
||||
export type GenericResourceData = {
|
||||
export type GenericFunction<T, P extends unknown[] = unknown[]> = (...args: P) => T;
|
||||
|
||||
export type GenericResourceMetrics = {
|
||||
total: number;
|
||||
used: number;
|
||||
free: number;
|
||||
percentage: number;
|
||||
}
|
||||
};
|
||||
|
||||
type GenericResourceData = ResourceUsage & {
|
||||
free: number;
|
||||
};
|
||||
|
||||
export type Postfix = 'TiB' | 'GiB' | 'MiB' | 'KiB' | 'B';
|
||||
|
||||
14
lib/types/customModules/kbLayout.d.ts
vendored
14
lib/types/customModules/kbLayout.d.ts
vendored
@@ -1,7 +1,7 @@
|
||||
import { layoutMap } from "customModules/kblayout/layouts";
|
||||
import { layoutMap } from 'customModules/kblayout/layouts';
|
||||
|
||||
export type KbLabelType = "layout" | "code";
|
||||
export type KbIcon = "" | "" | "" | "" | "";
|
||||
export type KbLabelType = 'layout' | 'code';
|
||||
export type KbIcon = '' | '' | '' | '' | '';
|
||||
|
||||
export type HyprctlKeyboard = {
|
||||
address: string;
|
||||
@@ -24,10 +24,10 @@ export type HyprctlMouse = {
|
||||
export type HyprctlDeviceLayout = {
|
||||
mice: HyprctlMouse[];
|
||||
keyboards: HyprctlKeyboard[];
|
||||
tablets: any[];
|
||||
touch: any[];
|
||||
switches: any[];
|
||||
tablets: unknown[];
|
||||
touch: unknown[];
|
||||
switches: unknown[];
|
||||
};
|
||||
|
||||
export type LayoutKeys = keyof typeof layoutMap;
|
||||
export type LayoutValues = typeof layoutMap[LayoutKeys];
|
||||
export type LayoutValues = (typeof layoutMap)[LayoutKeys];
|
||||
|
||||
3
lib/types/customModules/network.d.ts
vendored
3
lib/types/customModules/network.d.ts
vendored
@@ -1,5 +1,4 @@
|
||||
export type NetworkResourceData = {
|
||||
in: string;
|
||||
out: string;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
14
lib/types/customModules/utils.d.ts
vendored
14
lib/types/customModules/utils.d.ts
vendored
@@ -1,9 +1,9 @@
|
||||
import { Binding } from "lib/utils";
|
||||
import { Binding } from 'lib/utils';
|
||||
|
||||
export type InputHandlerEvents = {
|
||||
onPrimaryClick?: Binding,
|
||||
onSecondaryClick?: Binding,
|
||||
onMiddleClick?: Binding,
|
||||
onScrollUp?: Binding,
|
||||
onScrollDown?: Binding,
|
||||
}
|
||||
onPrimaryClick?: Binding;
|
||||
onSecondaryClick?: Binding;
|
||||
onMiddleClick?: Binding;
|
||||
onScrollUp?: Binding;
|
||||
onScrollDown?: Binding;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user