feat: add hide menu bar items on macOS (#50)

Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
Ryan Cao
2023-07-11 19:35:15 +00:00
committed by GitHub
parent 13d87dc85e
commit 72f83c3ac4
2 changed files with 74 additions and 49 deletions

View File

@@ -0,0 +1,13 @@
/*
* SPDX-License-Identifier: GPL-3.0
* Vencord Desktop, a desktop app aiming to give you a snappier Discord Experience
* Copyright (c) 2023 Vendicated and Vencord contributors
*/
export function isTruthy<T>(item: T): item is Exclude<T, 0 | "" | false | null | undefined> {
return Boolean(item);
}
export function isNonNullish<T>(item: T): item is Exclude<T, null | undefined> {
return item != null;
}