Remove usage of 'null' in favor of 'undefined'

This commit is contained in:
Keavon Chambers
2022-08-25 21:32:27 -07:00
parent 1e74ccb4f8
commit 33cb6fcb00
21 changed files with 45 additions and 323 deletions
+3 -3
View File
@@ -82,9 +82,9 @@ export type HintGroup = HintInfo[];
export class HintInfo {
readonly keyGroups!: KeysGroup[];
readonly keyGroupsMac!: KeysGroup[] | null;
readonly keyGroupsMac!: KeysGroup[] | undefined;
readonly mouse!: MouseMotion | null;
readonly mouse!: MouseMotion | undefined;
readonly label!: string;
@@ -669,7 +669,7 @@ export type WidgetLayout = {
export function defaultWidgetLayout(): WidgetLayout {
return {
layoutTarget: null,
layoutTarget: undefined,
layout: [],
};
}